When training a custom dataset using YOLO and darknet, suppose available data is annotated with 3 classes, voc.names
cat
dog
bird
So, the .txt files will be in the format of
1 0.587 0.576 0.361 0.415
0 0.205 0.803 0.166 0.206
0 0.181 0.597 0.166 0.206
2 0.417 0.857 0.166 0.206
which means cat is class 0, dog - class 1, bird - class 2
If I want to train the model to detect only dog(class 1) and ignore remaining classes, how to do it? Can I change the voc.names file in the following manner i.e. leave the 1st and 3rd line empty
<assume empty line>
dog
<assume empty line>
If the above process is wrong, is there any other solution?