rbgirshick / py-faster-rcnn

Faster R-CNN (Python implementation) -- see https://github.com/ShaoqingRen/faster_rcnn for the official MATLAB version
Other
8.1k stars 4.11k forks source link

Failed to parse NetParameter file #325

Open sidgan opened 8 years ago

sidgan commented 8 years ago

I'm getting the following error while running the test command from the faster_rcnn_end2end.sh file.

F0901 13:19:56.008095 28517 upgrade_proto.cpp:75] Check failed: ReadProtoFromBinaryFile(param_file, param) Failed to parse NetParameter file: output/faster_rcnn_end2end/coco_2014_train/vgg_cnn_m_1024_faster_rcnn_iter_490000.caffemodel
*** Check failure stack trace: ***
./experiments/scripts/faster_rcnn_end2end.sh: line 71: 28517 Aborted                 ./tools/test_net.py --gpu ${GPU_ID} --def models/${PT_DIR}/${NET}/faster_rcnn_end2end/test.prototxt --net output/faster_rcnn_end2end/coco_2014_train/vgg_cnn_m_1024_faster_rcnn_iter_490000.caffemodel --imdb ${TEST_IMDB} --cfg experiments/cfgs/faster_rcnn_end2end.yml ${EXTRA_ARGS}

The file vgg_cnn_m_1024_faster_rcnn_iter_490000.caffemodel does exist and the path is also right.

Any pointers ?

karaspd commented 8 years ago

Can you show all the lines of error? It might be an error inside your prototxt.

sidgan commented 8 years ago

That is the only error as far as I can see, I've enclosed a screenshot as well. The prototxt files are identical to the ones in the repo (https://github.com/rbgirshick/py-faster-rcnn/tree/master/models/coco/VGG_CNN_M_1024/faster_rcnn_end2end). I didn't change them in any way.

screen shot 2016-09-01 at 12 59 26 pm 2

6676401088 commented 7 years ago

how did you solve thi problem ? I meet with the same problem: I1015 18:06:31.415693 3106 net.cpp:270] This network produces output bbox_pred I1015 18:06:31.415700 3106 net.cpp:270] This network produces output cls_prob I1015 18:06:31.415724 3106 net.cpp:283] Network initialization done. F1015 18:06:31.941328 3106 upgrade_proto.cpp:75] Check failed: ReadProtoFromBinaryFile(param_file, param) Failed to parse NetParameter file: /home/binbin/git-projects/py-faster-rcnn/data/faster_rcnn_models/VGG16_faster_rcnn_final.caffemodel * Check failure stack trace: * Aborted (core dumped)

sidgan commented 7 years ago

The paths in one of the files needs to be updated. Check the solver.prototxt and the bash files it is being called from, like (faster_rcnn_end2end.sh)