MobileNet-SSD icon indicating copy to clipboard operation
MobileNet-SSD copied to clipboard

Finetuning error: "Creating layer conv14_2_mbox_conf_flat" --> "Check failed: std::equal(top_shape.begin() + 1, top_shape.begin() + 4, shape.begin() + 1) "

Open gombru opened this issue 7 years ago • 6 comments

Hello,

I'm trying to fine-tune MobileNet-SSD using a modified version of COCO. I have created the lmdb's of my modified COCO version using SSD. Then I have used gen_model.sh 21 to generate the net prototxt. When I call train.sh to start eh finetuning, I get this error:

0209 12:37:34.576712 15523 layer_factory.hpp:77] Creating layer conv14_2_mbox_conf_flat F0209 12:37:34.581527 15545 annotated_data_layer.cpp:205] Check failed: std::equal(top_shape.begin() + 1, top_shape.begin() + 4, shape.begin() + 1)

Any idea about the reason? I'm not modifying the net architecture, so its weird. Thanks!

gombru avatar Feb 09 '18 11:02 gombru

I got this too, has any one solved this?

zhangnn016 avatar Mar 28 '18 09:03 zhangnn016

I am facing same issue, any solutions?

apatti avatar Jun 13 '18 17:06 apatti

any solution to this issue yet? I just encountered this

stalagmite7 avatar Nov 05 '18 22:11 stalagmite7

I had this issue too? Did you solution this? Maybe, the lmdbs have error? But I'm not sure. I used my old lmdbs in the same Net and parameters, the issue did not appear.

urbaneman avatar Nov 16 '18 13:11 urbaneman

Hi, have anyone solved the issue? Kindly share your comments.

shiva13425 avatar Mar 02 '19 20:03 shiva13425

I solved it. Firslty, you should check the image size. Is there any image less than 300 pixels in width or height? If so, you need to sort them out. If there is no, may the RGB image is recognized as Gray, you can add "force_color: true" to the data param, both train.prototxt and test.prototxt need to be modified. Then, it can be solved.

MintHacker avatar Sep 30 '22 05:09 MintHacker