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:
Laughing 2024-10-30 07:53:04 +08:00 committed by GitHub
parent 886d0c7127
commit 83404afff1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,5 @@
# Ultralytics YOLO 🚀, AGPL-3.0 license
import subprocess
from ultralytics.cfg import TASK2DATA, TASK2METRIC, get_save_dir
from ultralytics.utils import DEFAULT_CFG, DEFAULT_CFG_DICT, LOGGER, NUM_THREADS, checks
@ -39,7 +38,7 @@ def run_ray_tune(
train_args = {}
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
from ray import tune