Add Dockerfile-runner for CI actions runner images (#4595)

This commit is contained in:
Glenn Jocher 2023-08-27 21:05:14 +02:00 committed by GitHub
parent 2567b288c9
commit bd96c0846b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 41 additions and 1 deletions

View file

@ -27,7 +27,7 @@ def test_checks():
@pytest.mark.skipif(not CUDA_IS_AVAILABLE, reason='CUDA is not available')
def test_train():
device = 0 if CUDA_DEVICE_COUNT < 2 else [0, 1]
device = 0 if CUDA_DEVICE_COUNT == 1 else [0, 1]
YOLO(MODEL).train(data=DATA, imgsz=64, epochs=1, batch=-1, device=device) # also test AutoBatch, requires imgsz>=64