Skip to content

Oneof result #7756

@sharonlee12

Description

@sharonlee12

hello,I want to know what the monai Oneof finally choose?
transforms.OneOf(transforms=[ monai.transforms.RandCropByPosNegLabeld(keys=["image", "label"], label_key="label", spatial_size=(args.roi_x, args.roi_y, args.roi_z), pos=2, neg=1, num_samples=args.num_samples, image_key="image", image_threshold=0), monai.transforms.Resized(keys=["image", "label"], spatial_size=(args.roi_x, args.roi_y, args.roi_z)) ], weights=[1, 1] ),
this is my code,how can i know what it chooses?Crop or resize?
Hope someone will help me!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions