-
Notifications
You must be signed in to change notification settings - Fork 334
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
Converting v1 tiny-yolo fails #24
Comments
I have the same problem, I checked both models but everything looks fine. I think that the problem is the last layer "detection" of the .cfg structure. |
You should use this cfg: darknet/cfg/tiny.cfg |
@enderhsu - thanks. It got a bit farther now. I am using a newer version of caffe. I will investigate.
|
@victorv @enderhsu I got same problem with victorv. I already downloaded "tiny.cfg", "tiny.weights", "yolo.weights" and "yolov1.weights". For each weights file, I used this command python create_yolo_caffemodel.py -m "prototxt_file" -w "weights_file" -o tiny-yolo.caffemodel to try all the prototxt files in the prototxt folder. But, none of them is working. @enderhsu could you please tell us which specific prototxt file in the prototxt folder you used with tiny.weights file? I also tried "python create_yolo_prototxt.py tiny.cfg yolo_tiny.prototxt" to build a new prototxt file. And then, I used the new yolo_tiny.prototxt file to run "python create_yolo_caffemodel.py -m yolo_tiny.prototxt -w tiny.weights -o yolo.caffemodel" I got the error: [('-m', 'yolo_tiny.prototxt'), ('-w', 'tiny.weights'), ('-o', 'yolo.caffemodel')] |
@xiaoyuchhusky I met this error too. I manually change the value "True" to "true" for global_pooling in the generated prototxt. Besides, you probably also need to change "Relu" to "ReLU" in the same prototxt. |
@enderhsu Thank you so much for your quick reply. Everything is working well right now. Did you try to input a video file to do the object detection? |
@enderhsu @xiaoyuchhusky confirmed that it works with the generated prototxt only. |
@xiaoyuchhusky Not yet. Will do in a few days. |
@xiaoyuchhusky it seems not correct. For some 1*1 conv layer, the generated prototxt adds 1 pixel padding, which increases the size of feature maps. The overall architecture is not consistent with original dark net. |
@xiaoyuchhusky @enderhsu I use the .weight and .cfg you haved mentioned, but still get the error: Traceback (most recent call last): do you have any suggestions about this? |
python D:\caffe-yolo\yolo_main.py -m D:\caffe-yolo\created_yolo.caffemodel -w D:\caffe-yolo\tiny-yolo.weights -i C:\4.jpg Putting |
Hello, Did any one solve this issue? |
@enderhsu Hi. I was able to convert to prototxt using tiny.cfg. I would like to train my own model, how to I configure the number of classes I'm going to train on tiny.cfg? |
Hi, thanks for the cool tools. Looking to try this out but the scripts cannot convert v1 models for me.
python create_yolo_caffemodel.py -m prototxt/yolo_tiny_train_val.prototxt -w tiny-yolo.weights -o tiny-yolo.caffemodel
yields
Probably the train_val in the repository does not match the weights model downloaded from the yolo website using
wget http://pjreddie.com/media/files/tiny-yolo.weights
Question is where do I find the train_val for the tiny-yolo model?
Thanks.
The text was updated successfully, but these errors were encountered: