Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR:root:region layer is not supported #20

Open
gaopinghai opened this issue Feb 20, 2017 · 4 comments
Open

ERROR:root:region layer is not supported #20

gaopinghai opened this issue Feb 20, 2017 · 4 comments

Comments

@gaopinghai
Copy link

gaopinghai commented Feb 20, 2017

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
Copy link
Author

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!

@saeedizadi
Copy link

The same problem here

@zhan-xu
Copy link

zhan-xu commented Apr 15, 2017

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
Copy link

zhan-xu commented Apr 15, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants