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."
            )
相关推荐
AI即插即用18 小时前
即插即用系列 | WACV 2024 CSAM:面向各向异性医学图像分割的 2.5D 跨切片注意力模块
图像处理·人工智能·深度学习·神经网络·目标检测·计算机视觉·视觉检测
magic_ll19 小时前
【大模型】使用llamafactory 训练 qwen2.5-VL 的目标检测任务
人工智能·目标检测·计算机视觉
大学生毕业题目1 天前
毕业项目推荐:90-基于yolov8/yolov5/yolo11的工程车辆检测识别系统(Python+卷积神经网络)
人工智能·python·yolo·目标检测·cnn·pyqt·工程车辆检测
AI即插即用2 天前
即插即用系列 | TGRS 2025 MGAM:面向遥感微小目标检测的多尺度高斯注意力机制
图像处理·人工智能·深度学习·目标检测·计算机视觉·视觉检测
徽4402 天前
农田植被目标检测数据标注与模型训练总结3
人工智能·目标检测·目标跟踪
Coovally AI模型快速验证3 天前
深度学习驱动的视频异常检测(VAD),AI如何让监控更智能?
人工智能·深度学习·目标检测·机器学习·自动驾驶·无人机
J_Xiong01173 天前
【VLMs篇】11:用于端到端目标检测的可变形Transformers(Deformable DETR)
人工智能·深度学习·目标检测
Lun3866buzha3 天前
心血管造影图像目标检测_YOLO11-CSFCN模型实现与优化_1
人工智能·目标检测·目标跟踪
心疼你的一切3 天前
多模态AI与视觉语言模型
目标检测·microsoft·机器学习·ai·语言模型·自然语言处理
那雨倾城3 天前
PiscCode基于 YOLO 的人员分割 + PPE 检测绑定:一种工程级安全合规判定方案
图像处理·人工智能·安全·yolo·目标检测·计算机视觉