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

Visualize / Log Batch Size #966

Open
1 task done
WhoIsElMasri opened this issue Jan 1, 2025 · 4 comments
Open
1 task done

Visualize / Log Batch Size #966

WhoIsElMasri opened this issue Jan 1, 2025 · 4 comments
Labels
enhancement New feature or request HUB Ultralytics HUB issues

Comments

@WhoIsElMasri
Copy link

Search before asking

  • I have searched the HUB issues and found no similar feature requests.

Description

It would be beneficial to see the chosen batch_size when you rely on batch_size=-1 -> AUTO in the front end

Use case

No response

Additional

No response

@WhoIsElMasri WhoIsElMasri added the enhancement New feature or request label Jan 1, 2025
@UltralyticsAssistant UltralyticsAssistant added the HUB Ultralytics HUB issues label Jan 1, 2025
@UltralyticsAssistant
Copy link
Member

👋 Hello @WhoIsElMasri, thank you for raising an issue about Ultralytics HUB 🚀! It's great to see your interest in improving the platform. Your suggestion to visualize or log the batch size when using batch_size=-1 -> AUTO is quite valuable.

If this is a ❓ Feature Request, further context or examples of how this would enhance your workflows might be helpful for our team. Feel free to provide any additional insights or specific applications.

If this is a 🐛 Bug Report, please include any relevant details like steps to reproduce, environment setup, or screenshots, as this helps us investigate the matter more quickly.

This is an automated response, but an Ultralytics engineer will review your issue and assist you as soon as possible. Thank you for your patience and contribution! 😊

@pderrenger
Copy link
Member

@WhoIsElMasri thank you for your suggestion! 😊

Adding a feature to visualize or log the automatically determined batch size (batch_size=-1 -> AUTO) in the Ultralytics HUB interface is indeed a great idea. This could provide users with greater transparency and help them understand the batch size that is being computed based on their hardware capabilities.

As you may already know, the batch_size=-1 setting leverages the autobatch function to compute the optimal batch size dynamically, ensuring efficient GPU memory utilization. For more details on how this works, you can refer to the autobatch documentation.

We’ll take this feedback into account and consider it for future improvements to the HUB. In the meantime, if you’re looking to view the computed batch size during training, you can check the training logs, where this information should be displayed. Alternatively, if you're using Python scripts, you can explicitly call the autobatch function to compute and display the batch size:

from ultralytics.utils.autobatch import autobatch

optimal_batch_size = autobatch(model)  # Replace 'model' with your YOLO model instance
print(f"Optimal Batch Size: {optimal_batch_size}")

Feel free to share any additional thoughts or use cases for this feature. Your insights are always valued by the Ultralytics team and the YOLO community! 🚀

@hamua-cmd
Copy link

Hey @pderrenger, thank you for the fast response.
Where can I see the training logs in the HUB train interface? Did not find it yet

@pderrenger
Copy link
Member

Hi @hamua-cmd, you're very welcome! 😊

In the Ultralytics HUB, training logs are accessible directly within the training interface. Once you start a training job, you can:

  1. Navigate to your project: Go to the "Projects" section where your training job is located.
  2. Select the specific run: Click on the training run you are interested in.
  3. View logs in real-time: You will see a live training dashboard that includes metrics like loss, mAP, and performance graphs, as well as text-based logs.

The logs should display details such as the computed batch size (if batch_size=-1 was used), GPU utilization, and other training parameters. This helps ensure you can monitor your model's progress and configuration.

If you are unable to locate these logs, could you confirm which step you’re on or share any additional details? I’ll be happy to guide you further. 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request HUB Ultralytics HUB issues
Projects
None yet
Development

No branches or pull requests

4 participants