eric612 / MobileNet-YOLO

A caffe implementation of MobileNet-YOLO detection network
Other
865 stars 442 forks source link

Check failed: height <= datum_height (448 vs. 273) #219

Open EdwardVincentMa opened 5 years ago

EdwardVincentMa commented 5 years ago

Hi, Eric: I encountered this problem for several days. Check failed: height <= datum_height (XXX vs. XXX) I made the dataset myself, the SRC image is 875(W)675(H), type is '.jpg'. And I used 20 num_classes. I don't know which size should I resized, I tried resizing 608 608, 320 * 320 and do not resize. But all failed.

When I used your LMDB, it can run normally. And in data_transformer.cpp, the fun 'void DataTransformer::Transform()', the 'datum.encoded()' is TRUE. But my LMDB, datum.encoded() is FALSE. Does this mean my data is not encoded? I used Win10 and use convert_annoset.cpp generated LMDB.

Thank you very much !

labelmap.prototxt is as bellow : item { name: "0" label: 0 display_name: "0" } item { name: "1" label: 1 display_name: "1" } item { name: "2" label: 2 display_name: "2" } item { name: "3" label: 3 display_name: "3" } item { name: "4" label: 4 display_name: "4" } item { name: "5" label: 5 display_name: "5" } item { name: "6" label: 6 display_name: "6" } item { name: "7" label: 7 display_name: "7" } item { name: "8" label: 8 display_name: "8" } item { name: "9" label: 9 display_name: "9" } item { name: "10" label: 10 display_name: "10" } item { name: "11" label: 11 display_name: "11" } item { name: "12" label: 12 display_name: "12" } item { name: "13" label: 13 display_name: "13" } item { name: "14" label: 14 display_name: "14" } item { name: "15" label: 15 display_name: "15" } item { name: "16" label: 16 display_name: "16" } item { name: "17" label: 17 display_name: "17" } item { name: "18" label: 18 display_name: "18" } item { name: "19" label: 19 display_name: "19" }

eric612 commented 5 years ago

It is recommend to set resize width and height with 0 (keep original size) when produce lmdb .

EdwardVincentMa commented 5 years ago

It is recommend to set resize width and height with 0 (keep original size) when produce lmdb .

Yes, I used the src size, but failed. image

eric612 commented 5 years ago

Not in training , It's here , https://github.com/eric612/MobileNet-YOLO/blob/master/data/VOC0712/create_data.sh#L14

EdwardVincentMa commented 5 years ago

Sorry, I used Win10, not Linux. I generate LMDB with convert_imageset.exe(.cpp) not the create_data.sh