Pin ray numpy<=2.0.0 test (#17245)
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
886d0c7127
commit
83404afff1
1 changed files with 1 additions and 2 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
# Ultralytics YOLO 🚀, AGPL-3.0 license
|
# Ultralytics YOLO 🚀, AGPL-3.0 license
|
||||||
|
|
||||||
import subprocess
|
|
||||||
|
|
||||||
from ultralytics.cfg import TASK2DATA, TASK2METRIC, get_save_dir
|
from ultralytics.cfg import TASK2DATA, TASK2METRIC, get_save_dir
|
||||||
from ultralytics.utils import DEFAULT_CFG, DEFAULT_CFG_DICT, LOGGER, NUM_THREADS, checks
|
from ultralytics.utils import DEFAULT_CFG, DEFAULT_CFG_DICT, LOGGER, NUM_THREADS, checks
|
||||||
|
|
@ -39,7 +38,7 @@ def run_ray_tune(
|
||||||
train_args = {}
|
train_args = {}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
subprocess.run("pip install ray[tune]".split(), check=True) # do not add single quotes here
|
checks.check_requirements(("ray[tune]", "numpy<2.0.0"))
|
||||||
|
|
||||||
import ray
|
import ray
|
||||||
from ray import tune
|
from ray import tune
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue