Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YOLO 数据准备 #50

Open
w-yasuo opened this issue Aug 14, 2022 · 6 comments
Open

YOLO 数据准备 #50

w-yasuo opened this issue Aug 14, 2022 · 6 comments

Comments

@w-yasuo
Copy link

w-yasuo commented Aug 14, 2022

在使用YOLO网络的时候,报了个train: Scanning '/root/autodl-tmp/data/train/labels.cache' for images and labels... 0 found, 4000 missing, 0 empty, 0 corrupted: 100%|███████████████| 4000/4000 [00:00<?, ?it/s] 这个的错误, 我在教程里没发现具体的数据准备的过程,请问这是什么原因,我的目录结构已经按照yolo的那个 readme 准备完成

@georgeNakayama
Copy link
Collaborator

georgeNakayama commented Aug 14, 2022

请问您用的是那一个config file? config file的dataset是用的里面的default setting吗?

@w-yasuo
Copy link
Author

w-yasuo commented Aug 15, 2022

请问您用的是那一个config file? config file的dataset是用的里面的default setting吗?

我用的是project/yolo/configs/yolo5x_...的配置文件,里面train和val改成了我自己的目录(但不是报错的目录),我不清楚他是在什么地方将报错里的目录给配置进去了

@georgeNakayama
Copy link
Collaborator

georgeNakayama commented Aug 16, 2022

您的train.txt 和val.txt files里面应该分别包含到training images和val images的路径。您可以确认一下这两个txt files里面的路径是否正确。yolo dataset会根据txt file里面的路径来查找图片。这个corrupted image 是因为txt file里面的路径打不开而导致的。如果路径确认没有问题的话您可以把dataset里面的cache files都删除后在重新跑一下网络,看看是否还有这个问题。 如果问题还存在的话您可以您dataset的路径设置,还有train.txt里面的路径样本发上来。

@vicdxxx
Copy link

vicdxxx commented Sep 3, 2022

怎么使用 yolov5 的网络请问

@georgeNakayama
Copy link
Collaborator

请参照 projects/yolo/readme.md 。文档里有写如何用yolov5的模型来训练。

您是遇到了什么具体的问题了吗?如果这样的话请您说明一下问题的情况,我们好做出解答。

@vicdxxx
Copy link

vicdxxx commented Sep 3, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants