Comments (10)
Thanks for reporting! I’ll fix this. For now please download the proto file manually and use the local path explicitly.
from caffemodel2pytorch.
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.
What are long variables types?
from caffemodel2pytorch.
from caffemodel2pytorch.
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.
@mariosfourn I merged the @sebftw's PR that should fix this issue. Please let me know if it works for you now.
from caffemodel2pytorch.
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.
@asa008 does your system have protoc (the protobuf compiler)?
from caffemodel2pytorch.
@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.
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)
- How to use converted-model (pt)?? HOT 1
- What mean of Skipping Layer?? HOT 1
- TypeError: expected str, bytes or os.PathLike object, not NoneType HOT 7
- pytorch2caffemodel HOT 1
- google.protobuf.text_format.ParseError: 52:3 : Message type "caffe.LayerParameter" has no field named "bn_param". HOT 3
- caffe to pytorch model HOT 2
- FileNotFoundError: [Errno 2] No such file or directory: 'protoc': 'protoc' HOT 1
- Run Caffe models using PyTorch as backend HOT 1
- Add support for older caffe model HOT 3
- urllib.error.URLError: <urlopen error [Errno 104] Connection reset by peer> HOT 2
- how do i install it HOT 1
- Error in converting model with Fast RCNN HOT 1
- docker image
- 3D support and Deconvolution HOT 1
- Attribute error HOT 1
- FileNotFoundError: [WinError 2] HOT 1
- exception had an invalid syntax HOT 2
- downloaded caffe.proto cannot be read, saying FileNotFoundError, win10, python3 HOT 6
- AttributeError: module 'google.protobuf.descriptor' has no attribute '_message' HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caffemodel2pytorch.