Validate with 2x --workers (#6658)

This commit is contained in:
Glenn Jocher authored and GitHub committed 2022-02-16 14:44:44 +01:00
1 parent ee6c70ae43
commit 6769021901
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -232,7 +232,7 @@ def train(hyp, # path/to/hyp.yaml or hyp dictionary
if RANK in [-1, 0]:
val_loader = create_dataloader(val_path, imgsz, batch_size // WORLD_SIZE * 2, gs, single_cls,
hyp=hyp, cache=None if noval else opt.cache, rect=True, rank=-1,
workers=workers, pad=0.5,
workers=workers * 2, pad=0.5,
prefix=colorstr('val: '))[0]
if not resume: