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."
            )
相关推荐
IT古董5 小时前
【深度学习】计算机视觉(CV)-目标检测-DETR(DEtection TRansformer)—— 基于 Transformer 的端到端目标检测
深度学习·目标检测·计算机视觉
LensonYuan5 小时前
视觉目标检测之小目标检测技术调研与实验
目标检测·计算机视觉·目标跟踪
三年呀6 小时前
计算机视觉之图像处理-----SIFT、SURF、FAST、ORB 特征提取算法深度解析
图像处理·python·深度学习·算法·目标检测·机器学习·计算机视觉
咏&志18 小时前
目标检测之YOLO论文简读
人工智能·yolo·目标检测
North_D1 天前
ML.NET库学习008:使用ML.NET进行心脏疾病预测模型开发
人工智能·深度学习·神经网络·目标检测·机器学习·自然语言处理·数据挖掘
阿_旭1 天前
如何在C++中使用YOLO模型进行目标检测
人工智能·yolo·目标检测
量子-Alex2 天前
【目标检测】【YOLOv12】YOLOv12:Attention-Centric Real-Time Object Detectors
人工智能·目标检测·计算机视觉
Black_Rock_br2 天前
仿 Sora 之形,借物理模拟之技绘视频之彩
人工智能·目标检测·计算机视觉
North_D2 天前
ML.NET库学习011:基于YOLO目标检测算法的图像处理系统
人工智能·深度学习·神经网络·目标检测·机器学习·自然语言处理·数据挖掘
go54631584652 天前
python实现将RGB相机与事件相机的照片信息进行融合以进行目标检测
python·数码相机·目标检测