Replies: 1 comment
-
If you initialized the model with init_detector function as follows model = init_detector(args.config, args.checkpoint, device=args.device) try adding the code as below model.dataset_meta['classes'] = ('your', 'custom', 'classes') |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
在mmyolo中训练yolov8时,使用的是数据集是自己的coco格式的数据集(在mmdetection中可用),训练之后跑测试,发现检测出的类别还只是标准的coco数据集的类别,请问大佬如何修改coco数据集的类别,需要把coco数据集重新做成yolo格式的吗?目前的目录如下:
![image](https://user-images.githubusercontent.com/43568114/233109698-2e9e5c04-b75d-48db-adaa-904fcabe00dd.png)
Beta Was this translation helpful? Give feedback.
All reactions