跑通SOLOv2代码报错更改记录(detectron2版本)

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’
在这里插入图片描述

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Kivi闭关编程

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值