tiny yolo config and weights mismatch
I have modified the tiny yolo config to just work with 1 label and i want to retrain it with pre trained weights. When i try to this, i get this error
python3 flow --train --model cfg/tiny-yolo-voc.cfg --lr 1e-3 -momentum 0.9 --epoch 50000000 --save 20000 --savepb --dataset ~/train/ --annotation ~/train/ --threshold 0.01 --trainer adam --gpu 1.0 --batch 50 --load bin/tiny-yolo-voc.weights
Parsing ./cfg/tiny-yolo-voc.cfg
Parsing cfg/tiny-yolo-voc.cfg
Loading bin/tiny-yolo-voc.weights ...
Traceback (most recent call last):
File "flow", line 48, in
Is there someone who has tried this and has worked ?
My config looks like this
[convolutional] size=1 stride=1 pad=1 filters=30 activation=linear
[region] anchors = 1.08,1.19, 3.42,4.41, 6.63,11.38, 9.42,5.11, 16.62,10.52 bias_match=1 classes=1 coords=4 num=5 softmax=1 jitter=.2 rescore=1
Worked when i renamed the config file and had a config file name with same name as .weights. Had to pass --config cfg/
So did you write: python3 flow --train --config cfg/ --model cfg/tiny-yolo-voc.cfg --lr 1e-3 -momentum 0.9 --epoch 50000000 --save 20000 --savepb --dataset ~/train/ --annotation ~/train/ --threshold 0.01 --trainer adam --gpu 1.0 --batch 50 --load bin/tiny-yolo-voc.weights
Because I am getting the same Assertion error.