Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue in resize_segmentation #79

Open
mukul-B opened this issue Apr 7, 2022 · 3 comments
Open

issue in resize_segmentation #79

mukul-B opened this issue Apr 7, 2022 · 3 comments

Comments

@mukul-B
Copy link

mukul-B commented Apr 7, 2022

File "/home/mukbad/anaconda3/envs/mypyt/lib/python3.9/site-packages/batchgenerators/dataloading/multi_threaded_augmenter.py", line 48, in producer
item = transform(**item)
File "/home/mukbad/anaconda3/envs/mypyt/lib/python3.9/site-packages/batchgenerators/transforms/abstract_transforms.py", line 88, in call
data_dict = t(**data_dict)
File "/mnt/d/PycharmProjects/UNetPlusPlus/nnunet/training/data_augmentation/downsampling.py", line 83, in call
data_dict[self.output_key] = downsample_seg_for_ds_transform2(data_dict[self.input_key], self.ds_scales, self.order,
File "/mnt/d/PycharmProjects/UNetPlusPlus/nnunet/training/data_augmentation/downsampling.py", line 103, in downsample_seg_for_ds_transform2
out_seg[b, c] = resize_segmentation(seg[b, c], new_shape[2:], order, cval)
TypeError: resize_segmentation() takes from 2 to 3 positional arguments but 4 were given

@mukul-B
Copy link
Author

mukul-B commented May 5, 2022

Is anyone looking at this?

@maryjis
Copy link

maryjis commented May 25, 2022

Have the same issue

@maryjis
Copy link

maryjis commented May 25, 2022

You can resolve it by removing cval param, like this:

resize_segmentation(seg[b, c], new_shape[2:], order)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants