ultralytics 8.0.198 MLflow fix, tests and Docs page (#5357)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
12e3eef844
commit
5b3c4cfc0e
11 changed files with 228 additions and 65 deletions
26
tests/test_integrations.py
Normal file
26
tests/test_integrations.py
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# Ultralytics YOLO 🚀, AGPL-3.0 license
|
||||
|
||||
import pytest
|
||||
|
||||
from ultralytics import YOLO
|
||||
from ultralytics.utils import SETTINGS, checks
|
||||
|
||||
|
||||
@pytest.mark.skipif(not checks.check_requirements('ray', install=False), reason='RayTune not installed')
|
||||
def test_model_ray_tune():
|
||||
"""Tune YOLO model with Ray optimization library."""
|
||||
YOLO('yolov8n-cls.yaml').tune(use_ray=True,
|
||||
data='imagenet10',
|
||||
grace_period=1,
|
||||
iterations=1,
|
||||
imgsz=32,
|
||||
epochs=1,
|
||||
plots=False,
|
||||
device='cpu')
|
||||
|
||||
|
||||
@pytest.mark.skipif(not checks.check_requirements('mlflow', install=False), reason='MLflow not installed')
|
||||
def test_mlflow():
|
||||
"""Test training with MLflow tracking enabled."""
|
||||
SETTINGS['mlflow'] = True
|
||||
YOLO('yolov8n-cls.yaml').train(data='imagenet10', imgsz=32, epochs=3, plots=False, device='cpu')
|
||||
Loading…
Add table
Add a link
Reference in a new issue