GithubHelp home page GithubHelp logo

Comments (5)

darshana1406 avatar darshana1406 commented on September 19, 2024 2

In the color_transfer.py file add this:
from utils import imread, imresize, imsave, fromimage, toimage
and remove this:
from scipy.misc import imread, imresize, imsave, fromimage, toimage

from neural-style-transfer.

elctrc avatar elctrc commented on September 19, 2024

@Ruqyai you, like me, likely installed the most recent version of SciPy, which no longer contains the imread method. See here: https://docs.scipy.org/doc/scipy-1.2.1/reference/generated/scipy.misc.imread.html

I have tried using imageio - you need to also update line 116 and change the parameter "mode" to "pilmode". But tbh even after doing that I am just getting different errors:

Traceback (most recent call last): File "color_transfer.py", line 116, in <module> generated_image = imread(args.generated_image, pilmode="RGB") File "/home/kidd/anaconda3/envs/nst/lib/python3.7/site-packages/imageio/core/functions.py", line 264, in imread reader = read(uri, format, "i", **kwargs) File "/home/kidd/anaconda3/envs/nst/lib/python3.7/site-packages/imageio/core/functions.py", line 182, in get_reader "Could not find a format to read the specified file " "in mode %r" % mode ValueError: Could not find a format to read the specified file in mode 'i'

from neural-style-transfer.

dkarma avatar dkarma commented on September 19, 2024

it's really sad that great projects like these get utterly destroyed by changes in the underlying libraries. basically this entire neural doodle tree is completely broken by depricated functions in scipy and other libraries.

imo devs have an obligation to tell people their stuff is broken (and pull it from github) if the underlying dependencies break.
this all needs to be rewritten and does not work as-is

from neural-style-transfer.

titu1994 avatar titu1994 commented on September 19, 2024

1- don't repeat your comment as a seperate issue (or instead don't paste your issue in other issues)

2-
I (or any other dev) have absolutely 0 obligation to do anything at all if the underlying libraries change and break an application. If I volunteer to maintain it then thats volunteering, not an obligation on my part.

Nothing stops you from volunteering some of your own time maintaining the project and sending PR to update it, so feel free to do that if you feel so strongly about it.

from neural-style-transfer.

Ruqyai avatar Ruqyai commented on September 19, 2024

.

from neural-style-transfer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.