YOLOv3_TensorFlow icon indicating copy to clipboard operation
YOLOv3_TensorFlow copied to clipboard

Problems when trying to finetune with one class

Open mew124 opened this issue 5 years ago • 1 comments

Hi,

I'm pretty new to machine learning and need some help. I am trying to finetune on a dataset with only one labeled class. Can I still use the pretrained weights? I plotted the losses in tensorboard. If I don't change anything and finetune with my labeled data, the total loss goes up. I guess the reason might be that it detects other classes as well that are not labeled in my dataset... I tried to change the number of classes in the args file, but I get an error that the the model does not fit to the weights.

Can someone please give me some advice how to finetune correctly if only one of the 80 COCO classes is labeled in my datset? Many thanks in advance!!

mew124 avatar Jan 06 '20 11:01 mew124

If your dataset's class is in 'coco.names', eg 'car' which is the 3rd class, you may change Line 128 in './eval.py' to:

for ii in [2]:

FuNian788 avatar Jan 16 '20 06:01 FuNian788