Oneof result #7762
sharonlee12
started this conversation in
General
Oneof result
#7762
Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you,besides may I ask if you know the position of RandCropByPosNegLabel cropping can be returned? Or is there a cropping transform that makes it easier to obtain the cropped position? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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!
Beta Was this translation helpful? Give feedback.
All reactions