Giter Site home page Giter Site logo

utf-8 codec error about large_neural_style HOT 3 OPEN

dnuffer avatar dnuffer commented on September 24, 2024
utf-8 codec error

from large_neural_style.

Comments (3)

greycubesgav avatar greycubesgav commented on September 24, 2024 1

This seems to be an issue with pickle binaries between Python 2 and Python 3.

See a potential fix here: https://stackoverflow.com/a/41366785, adding 'encoding='latin1' to the pickle.load line referenced above.

From:
values = pickle.load(open(weights_filename))['param values']
To:
values = pickle.load(open(weights_filename,'rb'),encoding='latin1')['param values']

from large_neural_style.

greycubesgav avatar greycubesgav commented on September 24, 2024

Relates to: #1

from large_neural_style.

rivermonster avatar rivermonster commented on September 24, 2024

After fixing the issues in #1 AND #2 this is working. Thank you for the assistance! Running it on Ubuntu 20.4 (AMD 3700x, 32GB RAM, NVIDA 1080 FTW2 GPU)

(though it seems to only be using CPU--I'll open that issue after I test to make sure, possible I'm missing the environment variable for cuda for theano or something like that). I'm new to this and don't know Python yet, so it's been an uphill battle--but very rewarding. And once I get the GPU rendering instead of the CPU I'll be really geeked up!

from large_neural_style.

Related Issues (4)

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.