Closed imzhangyd closed 5 months ago
We inherited the 20 classes setup from the original Deformable DETR code. The focal loss is more stable with more classes. You can train with any amount of output neurons. It will just learn to never predict the others and only the one class or background.
Thanks.
I want to train on MOT17 dataset.
I changed the num_classes = 1 in the 'build_model' function in 'src/trackformer/models/init.py'.
The command:
Error:
Questions:
Q1: I think the class number equals one in MOT17. Why the pretrained model 'r50_deformable_detr_plus_iterative_bbox_refinement-checkpoint_hidden_dim_288.pth' was trained with 20 class numbers?
Q2: When I set the class number = 20, it began training. Will this setting (class number=20 not 1) affect the performance?
Q3: If I want to train my private dataset, which only has one class. How to set the class number? If I set class number=1, the pretrained model can not be used.
Thank you very much!