YOLOX icon indicating copy to clipboard operation
YOLOX copied to clipboard

Change num_classes for finetuning

Open juliuskuehn1 opened this issue 2 years ago • 1 comments

Hello, I try to finetune the yolox-l weights. My dataset containes only 8 classes while the pretrained weights of yolox-l are trained on 80 classes. How can I change the classes on loaded model weights to my custom number of classes.

Thnx.

juliuskuehn1 avatar Sep 01 '23 15:09 juliuskuehn1

Change /content/YOLOX/yolox/data/datasets/voc_classes.py file if you use a PASCAL_VOC dataset and type the 8 classes that you want in the VOC_CLASSES tuple.

tcotte avatar Sep 18 '24 08:09 tcotte