Skip to content

求助:使用官方的coco128以及命令进行测试的时候报错KeyError: 'info' #1851

@lemonsecho

Description

@lemonsecho

我在windows上使用pycharm的conda环境,部署了yolox,所有依赖已经安装,然后使用官方的测试命令(https://github.com/Megvii-BaseDetection/YOLOX/blob/main/docs/train_custom_data.md)进行训练的时候报错 File "D:\soft\tool\Anaconda\envs\yolox2\lib\site-packages\pycocotools\coco.py", line 314, in loadRes
res.dataset['info'] = copy.deepcopy(self.dataset['info'])
│ │ │ │ │ └ {'images': [{'file_name': '000000000001.jpg', 'id': 1, 'height': 480, 'width': 640}, {'file_name': '000000000002.jpg', 'id': ...
│ │ │ │ └ <pycocotools.coco.COCO object at 0x000001E4E33BEE30>
│ │ │ └ <function deepcopy at 0x000001E4D2F0AB90>
│ │ └ <module 'copy' from 'D:\soft\tool\Anaconda\envs\yolox2\lib\copy.py'>
│ └ {}
└ <pycocotools.coco.COCO object at 0x000001E4E3321060>

KeyError: 'info'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions