Giter Site home page Giter Site logo

Comments (10)

vadimkantorov avatar vadimkantorov commented on June 10, 2024

Thanks for reporting! I’ll fix this. For now please download the proto file manually and use the local path explicitly.

from caffemodel2pytorch.

mfournarakis avatar mfournarakis commented on June 10, 2024

I used the following to address it:
mybytes =urlopen(caffe_proto).read() mystr = mybytes.decode('ascii', 'ingore')

Of course, there are further issues given that python 3 doesn't support Unicode or long variables types anymore, but I just substituted the correct type.

from caffemodel2pytorch.

vadimkantorov avatar vadimkantorov commented on June 10, 2024

What are long variables types?

from caffemodel2pytorch.

mfournarakis avatar mfournarakis commented on June 10, 2024

from caffemodel2pytorch.

alanhzh avatar alanhzh commented on June 10, 2024

I have this errors:

Traceback (most recent call last): File "caffemodel2pytorch.py", line 384, in <module> net_param.ParseFromString(open(args.model_caffemodel).read()) File "/usr/lib/python3.6/codecs.py", line 321, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa2 in position 2: invalid start byte

from caffemodel2pytorch.

vadimkantorov avatar vadimkantorov commented on June 10, 2024

@mariosfourn I merged the @sebftw's PR that should fix this issue. Please let me know if it works for you now.

from caffemodel2pytorch.

asa008 avatar asa008 commented on June 10, 2024

Traceback (most recent call last):
File "caffe2PytorchTry001.py", line 7, in
caffe_proto = 'https://raw.githubuserco
File "F:\Projects\VesselSupportClassify2
self.net_param = initialize(caffe_proto
File "F:\Projects\VesselSupportClassify2
subprocess.check_call(['protoc', '--pro
File "C:\Users\qjhs\AppData\Local\Program
retcode = call(*popenargs, **kwargs)
File "C:\Users\qjhs\AppData\Local\Program
with Popen(*popenargs, **kwargs) as p:
File "C:\Users\qjhs\AppData\Local\Program
restore_signals, start_new_session)
File "C:\Users\qjhs\AppData\Local\Program
startupinfo)
FileNotFoundError: [WinError 2] system cannot find out this file

not work on win10, python 3

from caffemodel2pytorch.

vadimkantorov avatar vadimkantorov commented on June 10, 2024

@asa008 does your system have protoc (the protobuf compiler)?

from caffemodel2pytorch.

YeRen123455 avatar YeRen123455 commented on June 10, 2024

@vadimkantorov I meet the same problem like @asa008, and have protoc with version 3.11. It still doesn't work on win10, python 3

from caffemodel2pytorch.

vadimkantorov avatar vadimkantorov commented on June 10, 2024

Sorry, I don't even have the setup to work with this anymore. If you manage to debug it, please send a PR! If it's the problem with running protoc.exe, you can probably print out the command line arguments, then debug just the process call in an isolated fashion. Then if you make it work, the rest would probably work too.

from caffemodel2pytorch.

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.