You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
c-winder
changed the title
Random Anisotrophy transform changes the shape of the subject when copy=False
Random Anisotropy transform changes the shape of the subject when copy=False
Feb 12, 2025
Is there an existing issue for this?
Bug summary
Random Anisotropy transform changes the shape of the subject when copy=False.
Code for reproduction
Actual outcome
It reduces one of the dimensions, with the dimension changing at random, e.g.
input shape = [1, 256, 256, 256]
output shape may be [1, 103, 256, 256], [1, 256, 103, 256], or [1, 256, 256, 103]
This worked previously when I was using TorchIO: 0.19.7 and PyTorch: 2.0.1.
Error started when I upgraded to TorchIO: 0.20.4 and PyTorch: 2.6
Error messages
Expected outcome
Shape should not change
shape_original=(1, 256, 256, 256)
shape_after_copy_transform=(1, 256, 256, 256)
shape_after_no_copy_transform=(1, 256, 256, 256)
System info
The text was updated successfully, but these errors were encountered: