allanzelener / YAD2K

YAD2K: Yet Another Darknet 2 Keras
Other
2.71k stars 879 forks source link

The bounding box shifts #179

Open eraser3112 opened 4 years ago

eraser3112 commented 4 years ago

I ran the following program.

python yad2k.py yolov2-tiny-voc.cfg yolov2-tiny-voc_2000.weights yolov2tiny.h5

python test_yolo.py yolov2tiny.h5 -a yolov2tiny_anchors.txt -c coco.names

The bounding box shifts right or left from the target. There is "width = 320, height = 240" in the cfg file. This is probably the cause, but I don't want to change it. I think the anchor file needs to be modified. Where should I change? 1.08,1.19, 3.42,4.41, 6.63,11.38, 9.42,5.11, 16.62,10.52