Giter Site home page Giter Site logo

TypeError: expected bytes, str found about keras HOT 4 OPEN

marcbs avatar marcbs commented on August 21, 2024 1
TypeError: expected bytes, str found

from keras.

Comments (4)

SANTO-P avatar SANTO-P commented on August 21, 2024

help...............

from keras.

lvapeab avatar lvapeab commented on August 21, 2024

Please, provide a larger trace of the error and a better description of it, in order to be helped.

from keras.

aferjani avatar aferjani commented on August 21, 2024

Same problem !
Has someone managed to solve it ?
In fact, I have installed python 3.6 and keras 2.1.5 with Tensorflow Backend.
When I'm trying to execute the command:
python caffe2keras.py -load_path 'models/' -prototxt 'deepwatermap3_deploy.prototxt' -caffemodel 'deepwatermap3.caffemodel'
I got this error in the file \caffe_pb2.py", line 15
File "C:\Users\utilisateur\AppData\Local\Continuum\anaconda3\lib\site-packages\g oogle\protobuf\descriptor.py", line 829, in __new__ return _message.default_pool.AddSerializedFile(serialized_pb) TypeError: expected bytes, str found
PS: The model I'm trying to convert can be found on http://live.ece.utexas.edu/research/deepwatermap/

from keras.

aferjani avatar aferjani commented on August 21, 2024

Found it !
The problem is the python version
you have to switch to python 2.7 and it'll be fine.
You can look at this link

from keras.

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.