Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Conversation

suljaxm
Copy link

@suljaxm suljaxm commented Aug 12, 2019

perf: imresize is removed in SciPy 1.3.0. and use Pillow insted: numpy.arrary(Image.fromarray(arr).resize())

perf: imresize is removed in SciPy 1.3.0. and use Pillow insted:numpy.arrary(Image.fromarray(arr).resize())
"""
for image_file in glob(os.path.join(data_folder, 'image_2', '*.png')):
image = scipy.misc.imresize(scipy.misc.imread(image_file), image_shape)
image = np.arrary(Image.open(image_file).resize(image_shape))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

np.array

@daltonrenaldo
Copy link

would also need to replace scipy.misc.imsave and scipy.misc.toimage

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants