Add Dockerfile-runner for CI actions runner images (#4595)
This commit is contained in:
parent
2567b288c9
commit
bd96c0846b
3 changed files with 41 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue