liulei01 / DRBox

A deep learning based algorithm to detect rotated object, for example, objects in remote sensing images
Other
421 stars 142 forks source link

Deployment problem #32

Open noobgrow opened 5 years ago

noobgrow commented 5 years ago

when I follow the deployment steps,error occurs as follow:

dong@dong:~/Downloads/caffe-ssd/examples/rbox/deploy/Airplane$ python deploy.py

WARNING: Logging before InitGoogleLogging() is written to STDERR
W1224 12:42:21.621986 21588 _caffe.cpp:122] DEPRECATION WARNING - deprecated use of Python interface
W1224 12:42:21.622025 21588 _caffe.cpp:123] Use this instead (with the named "weights" parameter):
W1224 12:42:21.622030 21588 _caffe.cpp:125] Net('/home/dong/Downloads/caffe-ssd/examples/rbox/deploy/Airplane/deploy.prototxt', 1, weights='/home/dong/Downloads/caffe-ssd/examples/rbox/deploy/Airplane/RBOX_AIRPLANE_RBOX_300x300_AIRPLANE_VGG_iter_140000.caffemodel')
[libprotobuf ERROR google/protobuf/text_format.cc:298] Error parsing text-format caffe.NetParameter: 483:20: Message type "caffe.LayerParameter" has no field named "prior_rbox_param".
F1224 12:42:21.624474 21588 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: /home/dong/Downloads/caffe-ssd/examples/rbox/deploy/Airplane/deploy.prototxt
*** Check failure stack trace: ***
Aborted (core dumped)

[libprotobuf ERROR google/protobuf/text_format.cc:298] Error parsing text-format caffe.NetParameter: 483:20: Message type "caffe.LayerParameter" has no field named "prior_rbox_param".

can anyone tell me why?How to solve this??

Thanks in advance!

EthanGreen75 commented 5 years ago

the caffe code of your project is not using the ssd version, so the prior_box_layer file does not exist. you can directly use the caffe code of this project @noobgrow

leigao97 commented 5 years ago

I have the same issue and I am running the code directly downloaded from DRBox github page. Any other thoughts to solve this problem? Thank you!

SRILEKHA-V19 commented 4 years ago

I have the same issue and I am running the code directly downloaded from DRBox github page. Any other thoughts to solve this problem? Thank you!

I had faced a similar issue, and there are 2 things to be taken care of(which helped me):

  1. Build caffe SSD by enabling custom python layer(WITH_PYTHON_LAYER := 1) in Makefile.config file.
  2. The CAFFEROOT mentioned in the DRBOX readme.md is different from the CAFFE_ROOT mentioned there: a) CAFFE_ROOT is the path to the Caffe SSD build. b) CAFFEROOT is the path to DRBox caffe i.e. DRBox/src/caffe(this is the path needed to train DRBox)