caffe-yolo icon indicating copy to clipboard operation
caffe-yolo copied to clipboard

ERROR:root:region layer is not supported

Open gaopinghai opened this issue 8 years ago • 4 comments

When i running command : python yolo_main.py -m prototxt/yolo_tiny_deploy.prototxt -w weights/yolo_tiny.caffemodel -i images/cat.jpg I met error below: F0220 18:45:25.861762 19763 net.cpp:767] Check failed: target_blobs.size() == source_layer.blobs_size() (1 vs. 2) Incompatible number of blobs for layer convX. So I changed very bias_term in conv layer in yolo_tiny_deploy.prototxt, and change the num_output to 1024 to met the shape of source. then I can make it run but have no target detected. output is as below:

W0220 19:14:37.177127 20235 upgrade_proto.cpp:72] Note that future Caffe releases will only support input layers and not input fields.
I0220 19:14:37.188316 20235 net.cpp:761] Ignoring source layer conv9
I0220 19:14:37.188356 20235 net.cpp:761] Ignoring source layer relu9
I0220 19:14:37.188367 20235 net.cpp:761] Ignoring source layer fc10
I0220 19:14:37.188377 20235 net.cpp:761] Ignoring source layer fc11
I0220 19:14:37.188385 20235 net.cpp:761] Ignoring source layer fc12
total time is " milliseconds 236.246
<dictionary-itemiterator object at 0x7fbd4cc3f100>
259 194

gaopinghai avatar Feb 20 '17 09:02 gaopinghai

When I running command python create_yolo_prototxt.py /home/gph/Desktop/darknet-master/cfg/tiny-yolo-voc.cfg prototxt/tiny-yolo-voc-gph.prototxt I got erroe like: ERROR:root:region layer is not supported Can someone help me? Thanks a lot!

gaopinghai avatar Feb 20 '17 11:02 gaopinghai

The same problem here

saeedizadi avatar Mar 15 '17 10:03 saeedizadi

This project only support yolo-v1, I guess you guys have downloaded the wrong cfg.

Unfortunately, even if I use the cfg from darknet/cfg/yolov1/, I still got the error: detection layer is not supported. I saw some people also met this problem in other threads.

For me, I remove the final layer (detection layer), because I only need the first few layers to initiate my own model.

zhan-xu avatar Apr 15 '17 09:04 zhan-xu

I just found out we should use darknet/cfg/tiny.cfg, who does not have dectection or region layer.

zhan-xu avatar Apr 15 '17 09:04 zhan-xu