mmet中deformable detr 报错 AssertionError: The `num_classes` (3) in DeformableDETRHead of...

AssertionError: The num_classes (3) in DeformableDETRHead of MMDataParallel does not matches the length of CLASSES 80) in CocoDataset

mmet中deformable detr 报错 AssertionError: The `num_classes` (3) in DeformableDETRHead of..._第1张图片

找到mmdet报错的路径

mmet中deformable detr 报错 AssertionError: The `num_classes` (3) in DeformableDETRHead of..._第2张图片

改成自己对应的类别

mmdet/datasets/coco.py下面的对应的数据集,比如CocoDataset

mmet中deformable detr 报错 AssertionError: The `num_classes` (3) in DeformableDETRHead of..._第3张图片

mmdet/core/evaluation/class_names.py下面的对应的数据集,比如coco_classes()

mmet中deformable detr 报错 AssertionError: The `num_classes` (3) in DeformableDETRHead of..._第4张图片

你可能感兴趣的:(深度学习,解决问题,Python,深度学习,人工智能)