overflocat / fast-neural-style-keras

A Keras Implementation of Fast-Neural-Style
MIT License
23 stars 7 forks source link

Cannot import imsave from scipy.misc #1

Closed YOUSIKI closed 5 years ago

YOUSIKI commented 5 years ago

Many thanks for your code, but I met the error when tried to run it. After searching on google, I found that imsave was removed from scipy.misc. And it's supposed that scipy.misc.imsave should be replaced by imageio.imwrite. I've modified the code and that works. Maybe you can use 3 min to change your code, such as

# from scipy.misc import imsave
from imageio import imwrite
imsave = imwrite

Thanks again.

overflocat commented 5 years ago

Sorry about that, this project has not been updated for a whole year. When I implemented it, the new version of Scipy did not come out. Now it should be fixed.