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:
parent
007f778b72
commit
ea80b14d72
5 changed files with 11 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue