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."
            )
相关推荐
醒李10 小时前
盲人出行辅助系统原型
人工智能·python·目标检测
这张生成的图像能检测吗10 小时前
(论文速读)STMNet: 基于单时间掩模的自监督高光谱变化检测网络
目标检测·自监督·掩码·高光谱检测·遥感检测
深度学习lover15 小时前
<数据集>yolo 白天鹅识别<目标检测>
人工智能·yolo·目标检测·数据集·白天鹅识别
AI浩19 小时前
UAV-DETR:面向反无人机目标检测的 DETR 框架
人工智能·目标检测·无人机
与仪共舞2 天前
安捷伦3458A多功能数字万用表
目标检测·机器学习
我材不敲代码2 天前
目标检测:YOLOv12环境配置,全文详细教程
人工智能·yolo·目标检测
断眉的派大星2 天前
目标检测中的区域建议(Region Proposal):高效候选框初筛
人工智能·目标检测·目标跟踪
想七想八不如114082 天前
markdown笔记(没找到合适笔记软件,暂存)
笔记·目标检测
深度学习lover2 天前
<数据集>yolo 易拉罐识别<目标检测>
人工智能·python·yolo·目标检测·计算机视觉·易拉罐识别