-
-
Notifications
You must be signed in to change notification settings - Fork 16.5k
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
Why is yolov5 training slow? #10254
Comments
👋 Hello! Thanks for asking about training speed issues. YOLOv5 🚀 can be trained on CPU (slowest), single-GPU, or multi-GPU (fastest). If you would like to increase your training speed some options are:
Good luck 🍀 and let us know if you have any other questions! |
Hello. |
@daigang896 It seems the bottleneck is data-loading as you've increased batch-size, maybe using more Line 457 in 7398d2d
|
@daigang896 also try --cache ram or --cache disk to reduce dataloading bottlenecks. |
Thanks, I'll try it. |
@glenn-jocher @Laughing-q |
@glenn-jocher |
For the most situation, follow the instructions by the author advise will be tackled. In your case, I think that it may be caused by your machine, you can try another machine and repeate once time if supported. Note that, it is very important to load the data into the memory, so, don't forget to add this line |
Hello. |
@daigang896 great!! |
👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs. Access additional YOLOv5 🚀 resources:
Access additional Ultralytics ⚡ resources:
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed! Thank you for your contributions to YOLOv5 🚀 and Vision AI ⭐! |
I saw no difference in training time with --cache or without when using a SSD, interesting. |
Hi there @glenn-jocher, do symlinks affect training speed? I keep multiple versions of my datasets and this way I can avoid storing the same images multiple times. Do you think it can be harmful in any way? |
👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs. Access additional YOLOv5 🚀 resources:
Access additional Ultralytics ⚡ resources:
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed! Thank you for your contributions to YOLOv5 🚀 and Vision AI ⭐! |
@bartlomiejgadzicki-digica symlinks generally do not affect training speed significantly, as they are simply pointers to the original data. However, they can introduce a slight overhead during data loading, so their impact on training speed might be negligible. Maintaining multiple dataset versions through symlinking is a smart storage solution. As long as your data loading and training procedures are not impacted, feel free to continue using symlinks to efficiently manage your datasets. |
Search before asking
Question
Why is yolov5 training slow? Use the yolov5m6 pretraining model. Does anyone have the same problem?
Additional
No response
The text was updated successfully, but these errors were encountered: