ultralytics 8.1.38 fix deprecated Ray Tune .is_session_enabled() (#9432)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Glenn Jocher 2024-03-31 00:13:05 +01:00 committed by GitHub
parent 007f778b72
commit ea80b14d72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 11 additions and 8 deletions

View file

@ -40,7 +40,7 @@ def run_ray_tune(
train_args = {}
try:
subprocess.run("pip install ray[tune]<=2.9.3".split(), check=True) # do not add single quotes here
subprocess.run("pip install ray[tune]".split(), check=True) # do not add single quotes here
import ray
from ray import tune
@ -48,7 +48,7 @@ def run_ray_tune(
from ray.air.integrations.wandb import WandbLoggerCallback
from ray.tune.schedulers import ASHAScheduler
except ImportError:
raise ModuleNotFoundError('Ray Tune required but not found. To install run: pip install "ray[tune]<=2.9.3"')
raise ModuleNotFoundError('Ray Tune required but not found. To install run: pip install "ray[tune]"')
try:
import wandb