张小北哈哈 2021-12-07 15:10 采纳率: 0%
浏览 36
已结题

用一类coco格式数据集训练swim-transformer-objetc-detection时报错


raceback (most recent call last):
  File "tools/train.py", line 187, in <module>
    main()
  File "tools/train.py", line 183, in main
    meta=meta)
  File "/home/zzk/project/Swin-Transformer-Object-Detection-fire/mmdet/apis/trai                                                  n.py", line 185, in train_detector
    runner.run(data_loaders, cfg.workflow)
  File "/opt/conda/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py                                                  ", line 125, in run
    epoch_runner(data_loaders[i], **kwargs)
  File "/opt/conda/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py                                                  ", line 54, in train
    self.call_hook('after_train_epoch')
  File "/opt/conda/lib/python3.7/site-packages/mmcv/runner/base_runner.py", line                                                   307, in call_hook
    getattr(hook, fn_name)(self)
  File "/home/zzk/project/Swin-Transformer-Object-Detection-fire/mmdet/core/eval                                                  uation/eval_hooks.py", line 147, in after_train_epoch
    key_score = self.evaluate(runner, results)
  File "/home/zzk/project/Swin-Transformer-Object-Detection-fire/mmdet/core/eval                                                  uation/eval_hooks.py", line 177, in evaluate
    results, logger=runner.logger, **self.eval_kwargs)
  File "/home/zzk/project/Swin-Transformer-Object-Detection-fire/mmdet/datasets/                                                  coco.py", line 404, in evaluate
    result_files, tmp_dir = self.format_results(results, jsonfile_prefix)
  File "/home/zzk/project/Swin-Transformer-Object-Detection-fire/mmdet/datasets/                                                  coco.py", line 349, in format_results
    result_files = self.results2json(results, jsonfile_prefix)
  File "/home/zzk/project/Swin-Transformer-Object-Detection-fire/mmdet/datasets/                                                  coco.py", line 286, in results2json
    json_results = self._segm2json(results)
  File "/home/zzk/project/Swin-Transformer-Object-Detection-fire/mmdet/datasets/                                                  coco.py", line 254, in _segm2json
    if isinstance(segms[i]['counts'], bytes):
IndexError: list index out of range

  • 写回答

1条回答

      报告相同问题?

      相关推荐 更多相似问题

      问题事件

      • 系统已结题 12月15日
      • 创建了问题 12月7日

      悬赏问题

      • ¥15 运用中断方法进行DOS功能的调用
      • ¥15 Python函数嵌套调用与递归
      • ¥20 不会做,找个好心人帮做,有偿,只要答案,不要说废话
      • ¥15 html页面铺满及插入音乐
      • ¥15 T5模型代码问题求助
      • ¥15 JSON文件存入数据库mysql/MongoDB
      • ¥15 C++实现更大的整数类
      • ¥15 Python怎么实现加减乘除乘方和阶乘呀
      • ¥15 centos8-arm64平台编译安装ray分布式计算框架。
      • ¥20 求帮做一个安卓app,用Android Studio制作。需要整个项目文件。