1.Dataset ‘coco_2017_train’ is already registered!
报错原因,coco_2017_train已经被注册,将Base-SOLOv2.yaml中的“coco_2017_train”
和“coco_2017_val”
改成这样
再将built.py改成这样
2.(<class ‘ImportError’>, ImportError(“cannot import name ‘string_metric’ from ‘rapidfuzz’ (D:\miniconda3\envs\detectron2\lib\site-packages\rapidfuzz-3.3.1-py3.8-win-amd64.egg\rapidfuzz\init.py)”), <traceback object at 0x0000022ECFCDE980>)
错误原因:rapidfuzz包版本过高
解决办法:降低该包版本为1.1.1版本,直接下载报错,去官网下载相应轮子文件进行安装
3.File “D:\pythonProject\AdelaiDet2\detectron2\detectron2\config\config.py”, line 45, in merge_from_file
assert PathManager.isfile(cfg_filename), f"Config file ‘{cfg_filename}’ does not exist!"
AssertionError: Config file ‘configs/SOLOv2/R50_3x.yaml’ does not exist!
报错原因:配置信息中的文件路径不全
解决办法:将断点调试中的配置文件路径改为全局路径
4.报错信息:AssertionError: Attribute ‘thing_classes’ in the metadata of ‘my_data_train’ cannot be set to a different value!
[‘person’] != [‘person’, ‘bicycle’, ‘car’, ‘motorcycle’, ‘airplane’, ‘bus’, ‘train’, ‘truck’, ‘boat’, ‘traffic light’, ‘fire hydrant’, ‘stop sign’, ‘parking meter’, ‘bench’, ‘bird’, ‘cat’, ‘dog’, ‘horse’, ‘sheep’, ‘cow’, ‘elephant’, ‘bear’, ‘zebra’, ‘giraffe’, ‘backpack’, ‘umbrella’, ‘handbag’, ‘tie’, ‘suitcase’, ‘frisbee’, ‘skis’, ‘snowboard’, ‘sports ball’, ‘kite’, ‘baseball bat’, ‘baseball glove’, ‘skateboard’, ‘surfboard’, ‘tennis racket’, ‘bottle’, ‘wine glass’, ‘cup’, ‘fork’, ‘knife’, ‘spoon’, ‘bowl’, ‘banana’, ‘apple’, ‘sandwich’, ‘orange’, ‘broccoli’, ‘carrot’, ‘hot dog’, ‘pizza’, ‘donut’, ‘cake’, ‘chair’, ‘couch’, ‘potted plant’, ‘bed’, ‘dining table’, ‘toilet’, ‘tv’, ‘laptop’, ‘mouse’, ‘remote’, ‘keyboard’, ‘cell phone’, ‘microwave’, ‘oven’, ‘toaster’, ‘sink’, ‘refrigerator’, ‘book’, ‘clock’, ‘vase’, ‘scissors’, ‘teddy bear’, ‘hair drier’, ‘toothbrush’]
报错原因:数据集实例类别不对应
解决办法:将builtin.py中的metadata_pic参数改为[‘person’, ‘bicycle’, ‘car’, ‘motorcycle’, ‘airplane’, ‘bus’, ‘train’, ‘truck’, ‘boat’,
‘traffic light’, ‘fire hydrant’, ‘stop sign’, ‘parking meter’, ‘bench’, ‘bird’, ‘cat’,
‘dog’, ‘horse’, ‘sheep’, ‘cow’, ‘elephant’, ‘bear’, ‘zebra’, ‘giraffe’, ‘backpack’,
‘umbrella’, ‘handbag’, ‘tie’, ‘suitcase’, ‘frisbee’, ‘skis’, ‘snowboard’, ‘sports ball’,
‘kite’, ‘baseball bat’, ‘baseball glove’, ‘skateboard’, ‘surfboard’, ‘tennis racket’,
‘bottle’, ‘wine glass’, ‘cup’, ‘fork’, ‘knife’, ‘spoon’, ‘bowl’, ‘banana’, ‘apple’,
‘sandwich’, ‘orange’, ‘broccoli’, ‘carrot’, ‘hot dog’, ‘pizza’, ‘donut’, ‘cake’,
‘chair’, ‘couch’, ‘potted plant’, ‘bed’, ‘dining table’, ‘toilet’, ‘tv’, ‘laptop’,
‘mouse’, ‘remote’, ‘keyboard’, ‘cell phone’, ‘microwave’, ‘oven’, ‘toaster’, ‘sink’,
‘refrigerator’, ‘book’, ‘clock’, ‘vase’, ‘scissors’, ‘teddy bear’, ‘hair drier’, ‘toothbrush’]
5.如何调试运行模型?
根据官方文档将参数写入其中
6.报错信息:OSError: [WinError 1455] 页面文件太小,无法完成操作
报错原因:模型太大,而系统分配的分页内存太小,无法评估
解决办法:
参考链接,修改页面内存
7.报错信息:FileNotFoundError: [Errno 2] No such file or directory: ‘datasets\coco\val2017\000000000139.jpg’