-
Notifications
You must be signed in to change notification settings - Fork 965
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble Converting IR to Caffe #111
Comments
could you add a line in caffe_model1.py from __future__ import print_function and try if it works? |
Thank you very much for the reply. Traceback (most recent call last): |
hi @lamdawr , Could you share some files for us to reproduce? Thanks. |
Hi @kitstar , what files would you like ? |
The code and models of source framework would be fine. And you can post the caffe_model1.py for quick check. Thanks. |
This issue can be solved by converting the filenames from unicode to string, i.e. caffe.Net(str(prototxt), caffe.TRAIN) |
Fixed in last commit. Thanks! |
@kitstar Actually, that doesn't work, since the save method also expects a string (and not unicode). I have a fix in my local install, which I can commit with the other caffe emitter changes. |
Hi
Platform (like ubuntu 16.04/win10): Ubuntu 14.04
Python version: 3.6 and 2.7
Source framework with version (like Tensorflow 1.4.1 with GPU): Keras 2.1.3
Destination framework with version (like CNTK 2.3 with GPU): Caffe
Pre-trained model path (webpath or webdisk path):
Running scripts:
I get the following error message while trying to create the .caffemodel
File "caffe_model1.py", line 65
print(n.to_proto(), file=fpb)
^
SyntaxError: invalid syntax
root@xxxxxxxxxxxx:/xxx/xxx/xxx/kerastocaffe# python caffe_model1.py -w caffe_model1.npy -p caffe_model1.prototxt -m caffe_model1.caffemodel
File "caffe_model1.py", line 65
print(n.to_proto(), file=fpb)
^
SyntaxError: invalid syntax
Thanks !
The text was updated successfully, but these errors were encountered: