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

Set lower validation batch size for yolov8 #1629

Merged
merged 8 commits into from
Jun 20, 2023

Conversation

abhinavnmagic
Copy link
Member

Ultralytics by default sets the validation batch size as twice the training batch size. This leads to OOM with our integration for YoloV8 m,l and x models.

The fix is to set the validation batch size to be one-fourth of the training batch size.
I tested the changes while training yolov8 models.

src/sparseml/yolov8/trainers.py Outdated Show resolved Hide resolved
bfineran
bfineran previously approved these changes Jun 16, 2023
@anmarques anmarques requested a review from bfineran June 16, 2023 12:40
@anmarques anmarques merged commit a6fdb7f into main Jun 20, 2023
10 checks passed
@anmarques anmarques deleted the abhinav/fix/lower-val-batch-size branch June 20, 2023 18:39
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

Successfully merging this pull request may close these issues.

None yet

3 participants