-
Notifications
You must be signed in to change notification settings - Fork 89
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
add spatial rescaler #414
add spatial rescaler #414
Conversation
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.
Thanks, looks good to me - just one minor docstring change I noticed!
n_stages: number of interpolation stages. | ||
size: output spatial size (int or Tuple[int] or Tuple[int, int] or Tuple[int, int, int]). | ||
method: algorithm used for sampling. | ||
multiplier: multiplier for spatial size. If scale_factor is a tuple, |
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.
this part about scale_factor
doesn't make sense - there is no variable with that name, and multiplier can't be a tuple. maybe just delete the part about scale_factor
?
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.
Thanks for pointing out the docstring problem. I have fixed it. This remembers me that the multiplier
can be a Sequence[float]
. I already added this type and a new test case for this situation in the latest commit.
"multiplier": (0.25, 0.5, 0.75), |
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 great, thanks for the addition
Follow the discussion at #410 and add the spatial rescaler implementation.