-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
RandAffined does not work for differently sized images #3339
Comments
Hi @Spenhouet , Thanks for your feedback! Thanks. |
Hi @Spenhouet, Without proper handling of the metadata, it doesn't make sense to compare the different shapes of the raw data arrays because they can be in different coordinate systems. This goes back to the feature request #2424. And the core team is fully aware of the ticket. It is a major feature and it takes time to analyse different use cases and take care of all the implementation details, please be patient and do not repeatedly create new bug reports or suggest fractional patches on the same topic. |
@wyli @Nic-Ma @ericspod @rijobro The project management feels rather arbitrary to me. I had the same with #2721. There I suggested a multiple of transforms to be implemented. There was some disagreement on if this should be tracked in a single issue or in individual issues. This disagreement does not seem to have been resolved. Instead the issue was silently changed to only the "add example images" part and then closed while the majority of the raised feature requests were not addressed. This suggests, that individual / fractional issues are preferred. Here I'm still about to create all the individual feature requests. The issue on #2424 is also rather broad. To get this done, there are many changes to be made. While we are working with MONAI, we are bumping into many issues which might relate to this. But they are very specific and individual issues which can be addressed independently. Based on my experience with #2721 I thought that individual bug reports and feature requests are more welcome. But apparently not. So what is it? What should I do. Please advise and maybe come to an internal decision on how you want to handle project management first. |
Hi @Spenhouet , Thanks very much for your great feedback and suggestions. Thanks. |
Hi @Nic-Ma, good to hear. I believe this is a worth while undertaking. I think the current way the Best regards, Edit: Basically, adding a form of |
Describe the bug
When the images in a pipeline entry have different sizes, then the RandAffined does not work properly.
The resulting images no longer match.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The same random affine transformation is applied to all images.
After the transform the labels still match the image.
Screenshots
Given the following image and label:
![image](https://user-images.githubusercontent.com/7819068/141314133-b37f21c1-48eb-413c-bba4-21c4e774f745.png)
When applying
RandAffined
, the image and labels no longer match:Additional context
We are using torchio's RandomAffine transform instead.
This issue was previously closed (#3316) and moved to a discussion (#3319) due to a bug in itk-snap. Since this does not have anything to do with this bug report, I'm reopening it.
The text was updated successfully, but these errors were encountered: