Skip to content
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

Error parsing text-format caffe.NetParameter #9

Closed
ShreyasSkandan opened this issue May 3, 2017 · 11 comments
Closed

Error parsing text-format caffe.NetParameter #9

ShreyasSkandan opened this issue May 3, 2017 · 11 comments
Assignees

Comments

@ShreyasSkandan
Copy link

I'm trying to run your test script (run-flownet.py) and I get the following error. I was wondering if you had any idea what might be causing this?

WARNING: Logging before InitGoogleLogging() is written to STDERR
W0503 18:41:55.555775  8258 _caffe.cpp:139] DEPRECATION WARNING - deprecated use of Python interface
W0503 18:41:55.555805  8258 _caffe.cpp:140] Use this instead (with the named "weights" parameter):
W0503 18:41:55.555807  8258 _caffe.cpp:142] Net('/tmp/tmpPx01R9', 1, weights='/home/shreyas/repositories/flownet2/models/FlowNet2-CSS-ft-sd/FlowNet2-CSS-ft-sd_weights.caffemodel.h5')
[libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 40:22: Message type "caffe.LayerParameter" has no field named "augmentation_param".
F0503 18:41:55.556738  8258 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: /tmp/tmpPx01R9
*** Check failure stack trace: ***
Aborted (core dumped)
@ShreyasSkandan
Copy link
Author

Nevermind, I forgot to source the env script!

@le-lshr1214
Copy link

@ShreyasSkandan ,How to source the env script? I meet this error too. thanks!

@nikolausmayer
Copy link
Contributor

@le-lshr1214
Copy link

/workspace/flownet2-master$ source set-env.sh
:
/workspace/flownet2-master$ python ./scripts/run-flownet.py ./models/FlowNet2/FlowNet2_weights.caffemodel.h5 ./models/FlowNet2/FlowNet2_deploy.prototxt.template ./data/ChairsSDHom/data/test/t0/00000.png ./data/ChairsSDHom/data/test/t0/00001.png z.flo
WARNING: Logging before InitGoogleLogging() is written to STDERR
W1012 17:26:07.218766 14540 _caffe.cpp:139] DEPRECATION WARNING - deprecated use of Python interface
W1012 17:26:07.218792 14540 _caffe.cpp:140] Use this instead (with the named "weights" parameter):
W1012 17:26:07.218796 14540 _caffe.cpp:142] Net('/tmp/tmpL87Svg', 1, weights='./models/FlowNet2/FlowNet2_weights.caffemodel.h5')
[libprotobuf ERROR google/protobuf/text_format.cc:274] Error parsing text-format caffe.NetParameter: 40:22: Message type "caffe.LayerParameter" has no field named "augmentation_param".
F1012 17:26:07.223557 14540 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: /tmp/tmpL87Svg
*** Check failure stack trace: ***

@le-lshr1214
Copy link

source set-env.sh, but error again

@le-lshr1214
Copy link

@nikolausmayer ,wrong caffe path. Thanks!

@Jacobtom
Copy link

@le-lshr1214 I also have the same problem, how do you solve?

@Hanimiao
Copy link

@le-lshr1214  I also have the same problem, how do you solve?

@tanle8
Copy link

tanle8 commented Mar 2, 2018

@le-lshr1214 Could you tell more in detail, thanks a lot.
I think this issues is about installing, but I can import caffe in python with no problem.

@xuzhongyou
Copy link

@le-lshr1214 Could you tell more in detail, thanks a lot.
I think this issues is about installing, but I can import caffe in python with no problem.

Have you solved the probelm, i can import caffe in python with no problem.

@rehanpunjwani
Copy link

@nikolausmayer I have run env script but still getting the same error. I am trying to run it on Google Colab! Please help me with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants