DORN icon indicating copy to clipboard operation
DORN copied to clipboard

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

Open icyhearts opened this issue 5 years ago • 8 comments

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?

icyhearts avatar Nov 17 '19 03:11 icyhearts

Same Error.

jianwang-mpi avatar Dec 16 '19 15:12 jianwang-mpi

Same Err..

jeonds1127 avatar Jan 16 '20 10:01 jeonds1127

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

dongda118 avatar Jan 17 '20 00:01 dongda118

bn_param is already defined in caffe.proto.

shell769324 avatar Apr 01 '20 14:04 shell769324

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.

Florijan-Iljazovic avatar May 23 '20 13:05 Florijan-Iljazovic

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

PengfeiMa avatar May 26 '20 06:05 PengfeiMa

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.

Florijan-Iljazovic avatar May 26 '20 07:05 Florijan-Iljazovic

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

jmjjok avatar Aug 17 '20 09:08 jmjjok