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: Message type "caffe.LayerParameter" has no field named "bn_param". #128

Closed
buaa-luzhi opened this issue Sep 1, 2017 · 19 comments

Comments

@buaa-luzhi
Copy link

Hi, @yjxiong
python tools/eval_net.py ucf101 1 rgb FRAME_PATH
models/ucf101/tsn_bn_inception_rgb_deploy.prototxt models/ucf101_split_1_tsn_rgb_reference_bn_inception.caffemodel
--num_worker 4 --save_scores SCORE_FILE

W0901 14:59:26.851496 12575 _caffe.cpp:128] Net('models/hmdb51/tsn_bn_inception_rgb_deploy.prototxt', 1, weights='models/hmdb51_split_1_tsn_rgb_reference_bn_inception.caffemodel')
[libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 19:12: Message type "caffe.LayerParameter" has no field named "bn_param".
F0901 14:59:26.854511 12575 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: models/hmdb51/tsn_bn_inception_rgb_deploy.prototxt
*** Check failure stack trace: ***
Aborted (core dumped)

caffe-action has been installed successfully.
Can you give me some advice about how to solve it!

Thank you so much!

@yjxiong
Copy link
Owner

yjxiong commented Sep 1, 2017

Have you strictly followed the instructions in README? You are running on another version of Caffe installed.

@buaa-luzhi
Copy link
Author

yes, according to the ReadMe every step, and download caffe from "https://github.com/yjxiong/caffe" and installed successfully.

@yjxiong
Copy link
Owner

yjxiong commented Sep 1, 2017

I don't know which README you are reading. But people usually go step by step starting from

https://github.com/yjxiong/temporal-segment-networks#get-the-code

and follow on.

@buaa-luzhi
Copy link
Author

but, i have only one gpu, this is different from you

@buaa-luzhi
Copy link
Author

The ReadMe is in the temporal-segment-networks zip file, i download it from "https://github.com/yjxiong"

@yjxiong
Copy link
Owner

yjxiong commented Sep 1, 2017

Then I guess it is the same as the one in the front page of this page. Please read it carefully and follow the step by step guide.

@buaa-luzhi
Copy link
Author

Thank you!

@yjxiong
Copy link
Owner

yjxiong commented Sep 1, 2017

I have said in the first reply you are running another version of Caffe. If you have followed the instructions on how to install, this should not have happened.

@buaa-luzhi
Copy link
Author

I'll reinstall caffe following the instructions. thank you!

@buaa-luzhi
Copy link
Author

@yjxiong
Sorry to disturb you again!
First,git clone --recursive https://github.com/yjxiong/temporal-segment-networks
Second compile caffe, mkdir build && cd build cmake .. -DUSE_MPI=ON make && make install
Third, dataset has been download
Fourth, python tools/eval_net.py ucf101 1 rgb FRAME_PATH
models/ucf101/tsn_bn_inception_rgb_deploy.prototxt models/ucf101_split_1_tsn_rgb_reference_bn_inception.caffemodel
--num_worker 4 --save_scores SCORE_FILE

Still making mistakes.

I hope you can help me again, thank you!

@yjxiong
Copy link
Owner

yjxiong commented Sep 1, 2017

Did you use the build_all.sh script? I am not able to help you if you keep not following the instructions.

@buaa-luzhi
Copy link
Author

Because, i have been installed Opencv-3-2-0-rc.
so, if i used build_all.sh, i am worry about conflict with Opencv2..4.13.

@yjxiong
Copy link
Owner

yjxiong commented Sep 1, 2017

It simply won't.

@buaa-luzhi
Copy link
Author

Do you have any advice, thank you!

@buaa-luzhi
Copy link
Author

Ok, thank you, i will try.

@buaa-luzhi
Copy link
Author

@yjxiong
Hello,
Thanks for your reply, I am so sorry disturb you again!
First, run the "build_all.sh" script, everything is ok,
However, when execute python tools/evel_net.py ... , this error occurs again.
At the moment, I feel helpless

@yjxiong
Copy link
Owner

yjxiong commented Sep 5, 2017

I have said you are running another Caffe installed on your machine. Another, less possible, reason could be that you have libboost version lower than 1.55, which will lead to the Python interface failing to compile.

@buaa-luzhi
Copy link
Author

@yjxiong
Yes, you are right, i have solved this problem!
Thank you for your reply!

@yjxiong
Copy link
Owner

yjxiong commented Sep 6, 2017

Closing this. Please feel free to reopen it if you meet any further problem.

@yjxiong yjxiong closed this as completed Sep 6, 2017
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

2 participants