train ilsvrc15 problem
To train ilsvrc15, I have modified ssd_pascal.py file, leading to the following questions:
I0725 15:15:42.359359 10336 net.cpp:91] Creating Layer mbox_conf_flatten I0725 15:15:42.359365 10336 net.cpp:425] mbox_conf_flatten <- mbox_conf_softmax I0725 15:15:42.359375 10336 net.cpp:399] mbox_conf_flatten -> mbox_conf_flatten I0725 15:15:42.359419 10336 net.cpp:141] Setting up mbox_conf_flatten I0725 15:15:42.359432 10336 net.cpp:148] Top shape: 1 82908 (82908) I0725 15:15:42.359438 10336 net.cpp:156] Memory required for data: 139699732 I0725 15:15:42.359444 10336 layer_factory.hpp:77] Creating layer detection_out I0725 15:15:42.359488 10336 net.cpp:91] Creating Layer detection_out I0725 15:15:42.359499 10336 net.cpp:425] detection_out <- mbox_loc I0725 15:15:42.359509 10336 net.cpp:425] detection_out <- mbox_conf_flatten I0725 15:15:42.359518 10336 net.cpp:425] detection_out <- mbox_priorbox I0725 15:15:42.359536 10336 net.cpp:399] detection_out -> detection_out I0725 15:15:42.442744 10336 net.cpp:141] Setting up detection_out I0725 15:15:42.442785 10336 net.cpp:148] Top shape: 1 1 1 7 (7) I0725 15:15:42.442792 10336 net.cpp:156] Memory required for data: 139699760 I0725 15:15:42.442801 10336 layer_factory.hpp:77] Creating layer detection_eval I0725 15:15:42.442822 10336 net.cpp:91] Creating Layer detection_eval I0725 15:15:42.442832 10336 net.cpp:425] detection_eval <- detection_out I0725 15:15:42.442843 10336 net.cpp:425] detection_eval <- label I0725 15:15:42.442855 10336 net.cpp:399] detection_eval -> detection_eval F0725 15:15:42.464709 10336 detection_evaluate_layer.cpp:52] Check failed: bottom[1]->width() == 8 (1 vs. 8) *** Check failure stack trace: *** @ 0x7f7338a0ee6d (unknown) @ 0x7f7338a10ced (unknown) @ 0x7f7338a0ea5c (unknown) @ 0x7f7338a1163e (unknown) @ 0x7f733e2cf70d caffe::DetectionEvaluateLayer<>::Reshape() @ 0x7f733e32da5b caffe::Net<>::Init() @ 0x7f733e32e8d5 caffe::Net<>::Net() @ 0x7f733e3133f2 caffe::Solver<>::InitTestNets() @ 0x7f733e313bcd caffe::Solver<>::Init() @ 0x7f733e313eba caffe::Solver<>::Solver() @ 0x7f733e3badf3 caffe::Creator_SGDSolver<>() @ 0x40f4de caffe::SolverRegistry<>::CreateSolver() @ 0x4086e8 train() @ 0x40658c main @ 0x7f73349b7af5 __libc_start_main @ 0x406cc1 (unknown)
hope to get your help!
I am guessing your test lmdb does not have ground truth? You should set output_label to False and make other changes accordingly. At least you should do the following:
- Remove net.label at here.
- Change the DetectionEvaluate layer to Silence layer at here.
- Remove these lines.
I make my own dataset in VOC format ( and Annotations with this ).
I don't have ground truth should i make these steps to?
Those steps are used to test on dataset that has not ground truth.
After these steps i need to remove net.label here to get ssd_pascal.py to run.
But when i start train i get an error
I0803 11:27:02.088877 7260 layer_factory.hpp:77] Creating layer mbox_conf_flatten
I0803 11:27:02.088877 7260 net.cpp:100] Creating Layer mbox_conf_flatten
I0803 11:27:02.089377 7260 net.cpp:434] mbox_conf_flatten <- mbox_conf_softmax
I0803 11:27:02.089377 7260 net.cpp:408] mbox_conf_flatten -> mbox_conf_flatten
I0803 11:27:02.089377 7260 net.cpp:150] Setting up mbox_conf_flatten
I0803 11:27:02.089879 7260 net.cpp:157] Top shape: 1 153468 (153468)
I0803 11:27:02.089879 7260 net.cpp:165] Memory required for data: 252331920
I0803 11:27:02.089879 7260 layer_factory.hpp:77] Creating layer detection_out
I0803 11:27:02.089879 7260 net.cpp:100] Creating Layer detection_out
I0803 11:27:02.089879 7260 net.cpp:434] detection_out <- mbox_loc
I0803 11:27:02.090378 7260 net.cpp:434] detection_out <- mbox_conf_flatten
I0803 11:27:02.090378 7260 net.cpp:434] detection_out <- mbox_priorbox
I0803 11:27:02.090378 7260 net.cpp:408] detection_out -> detection_out
I0803 11:27:02.093381 7260 net.cpp:150] Setting up detection_out
I0803 11:27:02.093881 7260 net.cpp:157] Top shape: 1 1 1 7 (7)
I0803 11:27:02.093881 7260 net.cpp:165] Memory required for data: 252331948
I0803 11:27:02.093881 7260 layer_factory.hpp:77] Creating layer detection_eval
I0803 11:27:02.094382 7260 net.cpp:100] Creating Layer detection_eval
I0803 11:27:02.094382 7260 net.cpp:434] detection_eval <- detection_out
I0803 11:27:02.094382 7260 net.cpp:408] detection_eval -> detection_eval
F0803 11:27:02.094882 7260 layer.hpp:389] Check failed: ExactNumTopBlobs() == top.size() (0 vs. 1) Silence Layer produces 0 top blob(s) as output.
*** Check failure stack trace: ***
May you can help. Thank you.
If you don't have label during testing, you shouldn't use DetectionEvaluate layer, instead you should use silence layer to suppress the detection_out output.