-
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
110-rotation #126
110-rotation #126
Conversation
@wyli @ericspod Same behavior as #125 (comment) replicated here. Resolution of that comment will be applied. |
monai/transforms/transforms.py
Outdated
@@ -12,6 +12,7 @@ | |||
|
|||
import torch | |||
import numpy as np | |||
from skimage.transform import rotate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
skimage isn't listed as a dependency in requirements.txt, an import won't be possible if it's missing. We should add it or scipy to requirements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, as briefly discussed in #112 (comment), pytorch provides a handy grid_sample
function which seems also much more efficient than skimage.transform (at least for generic warps in 2D). See https://colab.research.google.com/drive/17pI6xPGLTGcpGBulBrWZeNnBfLAwzqZT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
strangely the CI test passed without modifying requirements.txt
, @IsaacYangSLA looks like the CI docker image has common packages preinstalled, could we have a minimal docker image instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to use scipy.ndimage. Scikit-image doesn't work for 3D images properly. Also added to requirements and test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tvercaut That request is being handled in another PR.
635bd9e
to
25fae0f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Thanks.
Fixes #110 .
Description
Add the rotation transform. Tests coming soon.
Status
Work in progress
Types of changes