Soccer-Ball-Detection-YOLOv2 icon indicating copy to clipboard operation
Soccer-Ball-Detection-YOLOv2 copied to clipboard

no prediction with yolov2-tiny.weight

Open aimxu opened this issue 5 years ago • 1 comments

Thanks for the effort in collecting data and annotation @deep-diver

My os is windows 10, and the GPU just 2G ram

but when I train soccer data with yolov2-tiny.weight,(my GPU just 2G ram, can't train with yolov2.weight) there is no prediction after 40 epochs

I use yolov2-tiny.cfg and yolov2-tiny.wights in darknet official website, and change cfg' class to 1 and filter to 30

image

and the command here

python ./flow --labels labels_soccer.txt --model cfg/yolov2-tiny-soccer.cfg --load bin/yolov2-tiny.weights --train --annotation "E:/dataset/soccer_ball_data/Annotations" --dataset "E:/dataset/soccer_ball_data/images" --batch 4 --epoch 40 --save 20000 --backup soccer --savepb --gpu 0.5

The loss is far below 1, and it can generate .pb and .meta file in ./built_graph

but when I test image, the output image (using 10 images from original data)

python flow --pbLoad built_graph/yolov2-tiny-soccer.pb --metaLoad built_graph/yolov2-tiny-soccer.meta --imgdir sample_img/soccer --gpu 0.5

the is no boundingbox

Did somebody train this data with yolov2-tiny.weight? thanks in advance

aimxu avatar Mar 02 '20 04:03 aimxu

I also used yolov2-tiny.weights and got empty array for the outputs. Did you find a solution for it? @aimxu

yangx789 avatar May 31 '22 18:05 yangx789