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

Message type "caffe.LayerParameter" has no field named "bn_param" #37

Open
icyhearts opened this issue Nov 17, 2019 · 8 comments
Open

Comments

@icyhearts
Copy link

Thanks for make the code open-sourced.
When I run

python3 -m pudb demo_nyuv2.py --filename=./data/NYUV2/demo_01.png --outputroot=./result/NYUV2

I meet this error:

WARNING: Logging before InitGoogleLogging() is written to STDERR
W1117 10:42:23.021567 29694 _caffe.cpp:139] DEPRECATION WARNING - deprecated use of Python interface
W1117 10:42:23.021591 29694 _caffe.cpp:140] Use this instead (with the named "weights" parameter):
W1117 10:42:23.021595 29694 _caffe.cpp:142] Net('models/NYUV2/deploy.prototxt', 1, weights='models/NYUV2/cvpr_nyuv2.caffemodel')
[libprotobuf ERROR /var/tmp/portage/dev-libs/protobuf-3.8.0/work/protobuf-3.8.0/src/google/protobuf/text_format.cc:317] Error parsing text-format caffe.NetParameter: 52:12: Message type "caffe.LayerParameter" has no field named "bn_param".
F1117 10:42:23.022581 29694 upgrade_proto.cpp:90] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: models/NYUV2/deploy.prototxt
*** Check failure stack trace: ***
Aborted (core dumped)

I need some hints on the error

Message type "caffe.LayerParameter" has no field named "bn_param"

Could you please give some hints?

@jianwang-mpi
Copy link

Same Error.

@jeonds1127
Copy link

Same Err..

@dongda118
Copy link

You need add the bn_param in the caffe.proto, and make.

@shell769324
Copy link

bn_param is already defined in caffe.proto.

@Florijan-Iljazovic
Copy link

Someone should address this problem if anyone cares about this repo. Otherwise it's really hard to use. Same error occurs when I'm trying to run it:
Message type "caffe.LayerParameter" has no field named "bn_param".
Caffe was built fine, passed all the tests. Please address it or at least suggest what can be tried.

@PengfeiMa
Copy link

PengfeiMa commented May 26, 2020

add the DORN caffe python path to your ~/.bashrc
vim ~/.bashrc
add export PYTHONPATH=="/your dir/DORN/caffe/python:/your dir/DORN/caffe/pylayer"
source ~/.bashrc

@Florijan-Iljazovic
Copy link

Thanks PengfeiMa! I have by now successfully solved it, at least for my setup.

I was very irritated when I wrote the above comment xd. But the truth was I messed up with python paths really bad and that's why It didn't work. The gist of the problem was running it on Google Colab where things are a tad tricky.

@jmjjok
Copy link

jmjjok commented Aug 17, 2020

Is anyone here running dorn with colab? I used "apt install caffe-cuda" to install caffe and encountered the same problem, but I don’t know how to modify it

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