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:
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user