执行train.py时,会出现asterionError。

发布于 2025-02-07 16:40:33 字数 418 浏览 2 评论 0原文

我正在尝试在Anaconda提示中执行Python Train.py,但是我收到了许多线条文本和一个断言:找不到文件:Div2.yaml。 如您所见,我的 div2.yaml 文件是基于链接到我的数据集照片和验证的Coco128。

python train.py -img 640 - 零件16 - epochs 3 - data div2.yaml- weights yolov5s.pts.pt

我试图上传更多的屏幕打印以显示文件目录,但是它不允许我。 Div2.YAML文件位于 c:\ users \ marti \ desktop \ yolov5 \ data 中。 我尝试将完整的目录输入代码,但我的结果相同。 我不确定怎么了,如果有人可以帮助

I am trying to execute python train.py within Anaconda prompt but I am receiving numerous line text and an AssertionError: File not found: div2.yaml.
As you can see my div2.yaml file is based on the coco128 thats linked to my datasets photos and validation.

python train.py --img 640 --batch 16 --epochs 3 --data div2.yaml --weights yolov5s.pt

I tried to Upload more screen prints to show the file directories, but it wont allow me.
The div2.yaml file is located in C:\Users\Marti\Desktop\yolov5\Data.
I have tried entering the full directory into the code but I have the same outcome.
I am not sure what is wrong, if someone can help

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文