How to use mlflow with ultralytics ? #17490
Replies: 3 comments 12 replies
-
👋 Hello @Ashingharoy1991, thank you for reaching out with your questions about integrating MLflow with Ultralytics 🚀! We're here to help guide you in the right direction. We recommend checking out our Docs for an overview of features and configurations. Specifically, for logging and integration details, you might find the Python usage examples helpful. Since you're encountering an issue that could be a bug, it would be great if you could provide a minimum reproducible example of your script, including the configuration that leads to the behavior you’ve described. This will help us assist you more effectively. For custom training setups and configuration questions, providing more details such as dataset specifics, your training commands, and any relevant logs can be incredibly useful. Make sure you're also following our Tips for Best Training Results. Feel free to join our community in real-time on Discord 🎧 or share your experiences and get insights on our Discourse. Our Subreddit is also a great place for deeper dives into community knowledge sharing. UpgradeMake sure you're using the latest version of the pip install -U ultralytics Supported EnvironmentsYOLO works in several verified environments. Check out:
StatusThe status badge indicates if all Ultralytics CI tests are passing, confirming the integrity of various Modes and Tasks across different operating systems. This is an automated response, and an Ultralytics engineer will join the conversation soon to provide further assistance. 🙌 |
Beta Was this translation helpful? Give feedback.
-
also i am using this code. but don't know how my pc get stuck in between the training from ultralytics import YOLO Define the working directory for storing model artifactsworking_dir = "/home/st1/Mlops" # Define your working directory here # Define the experiment ID for MLflow (make sure 'exp' is defined or replace it with an integer)exp = 0 # Replace this with your actual experiment IDStart an MLflow runwith mlflow.start_run(experiment_id=501178566973958999):
|
Beta Was this translation helpful? Give feedback.
-
here you can see i am changing the runs_dir patha but its not changing , can help me with it? |
Beta Was this translation helpful? Give feedback.
-
I've been exploring the Ultralytics documentation and saw that MLflow integration is possible by adjusting some settings. However, I’m encountering an issue when running training scripts in Python.
When I specify project and name arguments during training, the mlruns directory doesn't get created. But, if I skip these parameters, MLflow automatically creates the mlruns directory in the runs folder. Why does this happen? Is there a way to get consistent behavior with project and name specified?
Additionally, I’d like to change the default path for MLflow’s mlruns directory to a custom location. Is there a way to configure this through Ultralytics directly? Or I have to use mlflow?
Any insights would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions