-
Notifications
You must be signed in to change notification settings - Fork 383
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
replacing deprecated imresize #103
Comments
Here is a commit in my own fork that demonstrates the change: I can turn this into a PR if people like this approach |
not quite correct. It does not have 'interp' keyword argument which is used in util/visualize.py |
I see. I don't use util/visualize.py so I didn't know about that. Here is the code I'm currently using in pose_dataset.py. Perhaps it will be useful for others.
|
I solve it by uninstalling scipy, and: |
In scipy v1.3, the
scipy.misc.imread
andscipy.misc.imresize
functions are no longer available. These are used throughout this package, especially in loading data inpose_dataset.py
.There's an easy replacement for
imread
:imageio.imread
For
imresize
, there are several choices:scipy.ndimage.zoom
skimage.transform.resize
PIL.Image.resize
These differ slightly in their implementation details (e.g., type of interpolation, anti-aliasing filters). Any preferences for which would be best?
My feeling is that scipy.ndimage.zoom is the best because it doesn't require adding a dependency (skimage or PIL). Also, the function signature is the same as the old
scipy.misc.imresize
, so it's a drop-in replacement.The text was updated successfully, but these errors were encountered: