mirror of
https://github.com/ultralytics/ultralytics
synced 2026-05-02 11:27:17 +00:00
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
20 lines
856 B
Markdown
20 lines
856 B
Markdown
---
|
|
description: Discover how to automatically estimate the best YOLO batch size for optimal CUDA memory usage in PyTorch using Ultralytics' autobatch utility.
|
|
keywords: YOLO batch size, CUDA memory, PyTorch autobatch, Ultralytics, machine learning, optimal batch size, training batch size, YOLO model
|
|
---
|
|
|
|
# Reference for `ultralytics/utils/autobatch.py`
|
|
|
|
!!! success "Improvements"
|
|
|
|
This page is sourced from [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/autobatch.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/autobatch.py). Have an improvement or example to add? Open a [Pull Request](https://docs.ultralytics.com/help/contributing/) — thank you! 🙏
|
|
|
|
<br>
|
|
|
|
## ::: ultralytics.utils.autobatch.check_train_batch_size
|
|
|
|
<br><br><hr><br>
|
|
|
|
## ::: ultralytics.utils.autobatch.autobatch
|
|
|
|
<br><br>
|