Open Zunon opened 1 year ago
我遇到了相同的问题,请问这是为什么,应该如何解决呢
change your configs like this model = dict( bbox_head=dict( head_module=dict(num_classes=num_classes)), train_cfg=dict(assigner=dict( type='BatchTaskAlignedAssigner', num_classes=1,#your num_classes use_ciou=True, topk=10, alpha=0.5, beta=6.0, eps=1e-09)) )
After running, a relatively complete config.py
file will be generated. Check whether all the class_name
related items in this file have been changed to your class_name
.
Prerequisite
🐞 Describe the bug
I'm training a YOLOv8 model on a custom COCO-formatted dataset (mav-vid dataset). I came up with this config:
yolov8_n_syncbn_fast_8xb16-500e_mav-vid.py
:However when I try to train it using tools/train.py I get the following error:
I'm not sure how to resolve it and I've read #536 and #770 however they don't seem to have the same issue as me.
Environment
Additional information
No response