PaddleDetection多目标跟踪报错MCMOTEvaluator is not exist, so the MOTA will be -INF

ppdet.metrics.mcmot_metrics WARNING: gt_filename '{}' of MCMOTEvaluator is not exist, so the MOTA will be -INF

PaddleDetection/ppdet/metrics/mcmot_metrics.py

python 复制代码
class MCMOTEvaluator(object):
    def __init__(self, data_root, seq_name, data_type, num_classes):
        self.data_root = data_root
        self.seq_name = seq_name
        self.data_type = data_type
        self.num_classes = num_classes

        self.load_annotations()
        try:
            import motmetrics as mm
            mm.lap.default_solver = 'lap'
        except Exception as e:
            raise RuntimeError(
                'Unable to use MCMOT metric, please install motmetrics, for example: `pip install motmetrics`, see https://github.com/longcw/py-motmetrics'
            )
        self.reset_accumulator()

        self.class_accs = []

    def load_annotations(self):
        assert self.data_type == 'mcmot'

        //修改为实际路径
        self.gt_filename = os.path.join(self.data_root, '../', 'sequences',
                                        '{}.txt'.format(self.seq_name))
        if not os.path.exists(self.gt_filename):
            logger.warning(
                "gt_filename '{}' of MCMOTEvaluator is not exist, so the MOTA will be -INF."
            )
相关推荐
搞科研的小刘选手18 小时前
【华中师范大学、华南师范大学联合主办】第五届图像处理、目标检测与跟踪国际学术会议(IPODT 2026)
图像处理·目标检测·跟踪·学术会议·会议推荐
这张生成的图像能检测吗21 小时前
(论文速读)SCNN:用于交通场景理解的空间CNN
人工智能·深度学习·目标检测·计算机视觉·道路线检测
延卿2 天前
nnDetection:基于 PyTorch 的目标检测框架
人工智能·pytorch·目标检测
动物园猫2 天前
PCB表面缺陷目标检测数据集:6类别、3,500张图像 | 目标检测
人工智能·目标检测·计算机视觉
AI棒棒牛3 天前
第11讲 | 目标检测任务:边界框、IoU、类别与置信度
人工智能·yolo·目标检测·yolo26
FriendshipT3 天前
Ultralytics:解读CBLinear模块
人工智能·pytorch·python·深度学习·目标检测
ShallWeL3 天前
Orin 上用 Docker 跑通目标检测功能
人工智能·目标检测·docker·容器
皓悦编程记4 天前
【免费数据集010期】Grape Leaf Diseases 葡萄叶病害检测数据集(4类):面向智慧农业的叶片病害识别基准
yolo·目标检测·视觉检测·数据集·yolo26
动物园猫4 天前
雨雾天气交通目标检测数据集:8类别、5,200张图像 | 目标检测
人工智能·目标检测·目标跟踪
FriendshipT5 天前
Ultralytics:解读C3k2模块
人工智能·pytorch·python·深度学习·目标检测