sin-x 2021-12-23 00:52 采纳率: 0%
浏览 5202

运行yolov5的train时,出现如下错误,怎么解决?

D:\Anaconda.2019.07\envs\pytorch\python.exe D:/pythonproject/yolov5-5.0/yolov5-5.0/train.py
D:\Anaconda.2019.07\envs\pytorch\lib\site-packages\torchvision\io\image.py:11: UserWarning: Failed to load image Python extension: [WinError 126] 找不到指定的模块。
warn(f"Failed to load image Python extension: {e}")
github: skipping check (not a git repository)
Traceback (most recent call last):
File "D:/pythonproject/yolov5-5.0/yolov5-5.0/train.py", line 514, in
opt.data, opt.cfg, opt.hyp = check_file(opt.data), check_file(opt.cfg), check_file(opt.hyp) # check files
File "D:\pythonproject\yolov5-5.0\yolov5-5.0\utils\general.py", line 151, in check_file
assert len(files), 'File Not Found: %s' % file # assert file was found
AssertionError: File Not Found: yolov5-5.0/data/hat.yaml

Process finished with exit code 1

  • 写回答

7条回答 默认 最新

  • nino_patrol 2022-01-29 16:13
    关注

    可以把“yolov5-5.0/data/hat.yaml”改为“data/hat.yaml”试一下,我成功了

    评论

报告相同问题?

问题事件

  • 创建了问题 12月23日