DORN
DORN copied to clipboard
Message type "caffe.LayerParameter" has no field named "bn_param"
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?
Same Error.
Same Err..
You need add the bn_param in the caffe.proto, and make.
bn_param is already defined in caffe.proto.
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.
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
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.
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