Skip to content
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

scipy.misc.imresize is deprecated in Scipy 1.14.3 --> modified code #80

Open
hccho2 opened this issue Jan 25, 2020 · 1 comment
Open

Comments

@hccho2
Copy link

hccho2 commented Jan 25, 2020

Before:

b = scipy.misc.imresize(a[:,:,0],[84,84,1],interp='nearest')
c = scipy.misc.imresize(a[:,:,1],[84,84,1],interp='nearest')
d = scipy.misc.imresize(a[:,:,2],[84,84,1],interp='nearest')
a = np.stack([b,c,d],axis=2)

After:

a= (skimage.transform.resize(a,[84,84,3],order=0)*255).astype(np.uint8)
@ichdich
Copy link

ichdich commented Aug 3, 2021

I replaced 4 lines described in "Before:" to 1 line described in "After":.
and it worked.
Thank you, Heecheol Cho.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants