integrations/ray-tune/ #16505
Replies: 11 comments 22 replies
-
Hi, I set up the parameter tuning proccess as explained but I am getting the following exception: 2024-09-26 17:55:38,910 ERROR tune_controller.py:1331 -- Trial task failed for trial _tune_617b3_00000 How do I fix this? Please dont tell me that it might be CUDA/Anaconda related... |
Beta Was this translation helpful? Give feedback.
-
👋 Hello, thank you for your interest in Ultralytics and exploring the integration with Ray Tune 🚀! We recommend checking out the Docs to explore more about this integration and other features. The Ray Tune Integration Guide provides comprehensive steps for optimizing your YOLOv8 model performance with advanced hyperparameter tuning techniques. If this is a 🐛 Bug Report, please provide a minimum reproducible example to help us identify and address any issues. An Ultralytics engineer will also assist you soon. In the meantime, feel free to participate in our community for real-time support. Join our Discord 🎧 for live discussions, or take part in the community on Discourse and Subreddit. UpgradeEnsure you have the latest pip install -U ultralytics EnvironmentsYou can work in any of the following environments where all necessary dependencies are preloaded:
StatusIf the badge is green, all Ultralytics CI tests are passing, ensuring the smooth operation of YOLOv8 across various systems. |
Beta Was this translation helpful? Give feedback.
-
I found out the issue was setting device = 0 in the model.tune() and specifying absolute path for the .data.yaml, which is not the same what YOLO does when started from within an opened folder on VScode. |
Beta Was this translation helpful? Give feedback.
-
unfortunately that is not the issue because the results are exactly the
same for different learning rates - impossible.
…On Fri, 27 Sept 2024 at 19:06, Glenn Jocher ***@***.***> wrote:
@sachmatkris <https://github.com/sachmatkris> it seems like the issue
might be with the search space configuration. Ensure that the
hyperparameters have enough variability and that the dataset path is
correctly set. If the problem persists, consider adjusting the search space
or reviewing the dataset configuration. For more details, you can refer to
the Ray Tune documentation
<https://docs.ultralytics.com/integrations/ray-tune/>.
—
Reply to this email directly, view it on GitHub
<#16505 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3WH6HFTKYE2WLTJVGR6HWTZYV7A5AVCNFSM6AAAAABO5HD4QCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANZXG43TCNQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Why is there no mention of beta 2(Adamw) in ultralithic documents? |
Beta Was this translation helpful? Give feedback.
-
Which versions of YOLO are supported by Ray Tune? I have project with YOLOv8, will it be suitable to use with Ray Tune? |
Beta Was this translation helpful? Give feedback.
-
como lo combino con MLFlow? |
Beta Was this translation helpful? Give feedback.
-
Hello! I'm trying to use Ray Tune for hyperparameter optimization with the following code: results = model.tune(
data="data.yaml",
epochs=30,
iterations=150,
batch=16,
optimizer="AdamW",
plots=False,
save=False,
val=False,
device=0,
workers=8,
use_ray=True,
project="ray_results"
) However, I'm getting a path-related error that I can't figure out:
It seems to be related to the length of the path Ray is trying to create. Do you know how I can fix this? Also, I have a question. I came across Ray Tune while working with Genetic Algorithms, and I was wondering: would you recommend using Ray Tune or Genetic Algorithms for hyperparameter optimization? Are they similar in how they work, or are there major differences between them? What advantages does Ray Tune offer over Genetic Algorithms? Thank you for your help! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hello, I've noticed that every Iteration with use_ray = True is downloading yolo11n.pt. I'm attempting to use this on an existing instance segmentation model I built but wanted to ensure the tuning is running against the model I've assigned, and not a fresh Detection model. from ultralytics import YOLO model_path = r"C:/Users/Me/Downloads/NashvilleSegmentation.pt" search_space = { results = model.tune( ) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
integrations/ray-tune/
Optimize YOLOv8 model performance with Ray Tune. Learn efficient hyperparameter tuning using advanced search strategies, parallelism, and early stopping.
https://docs.ultralytics.com/integrations/ray-tune/
Beta Was this translation helpful? Give feedback.
All reactions