ultralytics 8.0.109 HUB training fix (#2818)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Glenn Jocher
2023-05-25 06:44:31 +02:00
committed by GitHub
parent ffc0e8ccf7
commit f23a03596d
4 changed files with 9 additions and 9 deletions

View File

@ -29,7 +29,7 @@ def test_special_modes():
@pytest.mark.parametrize('task,model,data', TASK_ARGS)
def test_train(task, model, data):
run(f'yolo train {task} model={model}.yaml data={data} imgsz=32 epochs=1')
run(f'yolo train {task} model={model}.yaml data={data} imgsz=32 epochs=1 cache=disk')
@pytest.mark.parametrize('task,model,data', TASK_ARGS)

View File

@ -108,13 +108,13 @@ def test_amp():
def test_train_scratch():
model = YOLO(CFG)
model.train(data='coco8.yaml', epochs=1, imgsz=32)
model.train(data='coco8.yaml', epochs=1, imgsz=32, cache='disk') # test disk caching
model(SOURCE)
def test_train_pretrained():
model = YOLO(MODEL)
model.train(data='coco8.yaml', epochs=1, imgsz=32)
model.train(data='coco8.yaml', epochs=1, imgsz=32, cache='ram') # test RAM caching
model(SOURCE)