YAD2K
YAD2K copied to clipboard
Quick Start: Anchor file is None
Thanks for the great work! I firstly tried with the tiny-yolo, which worked fine. Then I wanted to follow the quick start to see how is the normal yolo2 on coco. However, after I transfer the weight and cfg into h5, and run the ./test_yolo.py, I got the error, which then turned out that the anchor file was actually nothing inside.
Here is the error message:
Traceback (most recent call last):
File "./test_yolo.py", line 200, in
The related anchor file was 0 bytes.
Thanks for the help!
Hi, I got same error and solved by make anchors file from .cfg file used before.
You can do it by following command:
grep anchors yolo.cfg > model_data/yolo_anchors.txt
sed -i 's/anchors//g' model_data/yolo_anchors.txt
sed -i 's/=//g' model_data/yolo_anchors.txt
Hi Yolo When I run: python yad2k.py yolo.cfg yolo.weights model_data/yolo.h5
I get the file yolo_anchors.txt in the model_data but it has 0 size. What should it be? Is it possible to generate it correctly from within python? Thanks
as mention by @ACfromecs grep anchors yolo.cfg > model_data/yolo_anchors.txt
sed -i 's/anchors//g' model_data/yolo_anchors.txt sed -i 's/=//g' model_data/yolo_anchors.txt if sed -I .... get Error just remove "anchors" and "=" in the file "yolo_anchors.txt"
and it works ^_^
can you please tell us how to run these commands if we use the folder in google colab
Can you please tell me how to run these on windows command line