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

perf: scipy.misc.imresize is repalced by Image.resize #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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())
@@ -132,7 +133,7 @@ def gen_test_output(sess, logits, keep_prob, image_pl, data_folder, image_shape)
:return: Output for for each test image
"""
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