ray[tune] Windows CI fix (#11674)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
2a67dd0a29
commit
f2f1afd269
4 changed files with 6 additions and 5 deletions
5
.github/workflows/ci.yaml
vendored
5
.github/workflows/ci.yaml
vendored
|
|
@ -201,8 +201,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
slow=""
|
slow=""
|
||||||
if [[ "${{ github.event_name }}" == "schedule" ]] || [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
|
if [[ "${{ github.event_name }}" == "schedule" ]] || [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
|
||||||
# WARNING bug in ray>=2.10.0
|
pip install pycocotools mlflow "ray[tune]"
|
||||||
pip install mlflow pycocotools "ray[tune]<=2.9.3"
|
|
||||||
slow="--slow"
|
slow="--slow"
|
||||||
fi
|
fi
|
||||||
pytest $slow --cov=ultralytics/ --cov-report xml tests/
|
pytest $slow --cov=ultralytics/ --cov-report xml tests/
|
||||||
|
|
@ -249,7 +248,7 @@ jobs:
|
||||||
- name: Install requirements
|
- name: Install requirements
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip wheel
|
python -m pip install --upgrade pip wheel
|
||||||
pip install -e ".[export]" pytest mlflow pycocotools "ray[tune]<=2.9.3"
|
pip install -e ".[export]" pytest mlflow pycocotools "ray[tune]"
|
||||||
- name: Check environment
|
- name: Check environment
|
||||||
run: |
|
run: |
|
||||||
yolo checks
|
yolo checks
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ To install the required packages, run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Install and update Ultralytics and Ray Tune packages
|
# Install and update Ultralytics and Ray Tune packages
|
||||||
pip install -U ultralytics "ray[tune]<=2.9.3"
|
pip install -U ultralytics "ray[tune]"
|
||||||
|
|
||||||
# Optionally install W&B for logging
|
# Optionally install W&B for logging
|
||||||
pip install wandb
|
pip install wandb
|
||||||
|
|
|
||||||
|
|
@ -107,6 +107,8 @@ def test_export_torchscript_matrix(task, dynamic, int8, half, batch):
|
||||||
|
|
||||||
@pytest.mark.slow
|
@pytest.mark.slow
|
||||||
@pytest.mark.skipif(not MACOS, reason="CoreML inference only supported on macOS")
|
@pytest.mark.skipif(not MACOS, reason="CoreML inference only supported on macOS")
|
||||||
|
@pytest.mark.skipif(not TORCH_1_9, reason="CoreML>=7.2 not supported with PyTorch<=1.8")
|
||||||
|
@pytest.mark.skipif(checks.IS_PYTHON_3_12, reason="CoreML not supported in Python 3.12")
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"task, dynamic, int8, half, batch",
|
"task, dynamic, int8, half, batch",
|
||||||
[ # generate all combinations but exclude those where both int8 and half are True
|
[ # generate all combinations but exclude those where both int8 and half are True
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ def run_ray_tune(
|
||||||
except (ImportError, AssertionError):
|
except (ImportError, AssertionError):
|
||||||
wandb = False
|
wandb = False
|
||||||
|
|
||||||
checks.check_version(ray.__version__, "<=2.9.3", "ray")
|
checks.check_version(ray.__version__, ">=2.0.0", "ray")
|
||||||
default_space = {
|
default_space = {
|
||||||
# 'optimizer': tune.choice(['SGD', 'Adam', 'AdamW', 'NAdam', 'RAdam', 'RMSProp']),
|
# 'optimizer': tune.choice(['SGD', 'Adam', 'AdamW', 'NAdam', 'RAdam', 'RMSProp']),
|
||||||
"lr0": tune.uniform(1e-5, 1e-1),
|
"lr0": tune.uniform(1e-5, 1e-1),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue