Allow not specifying val_work_per_gpu in test.py
@@ -73,7 +73,8 @@ def main():
data_loader = build_dataloader(
dataset,
samples_per_gpu=1,
- workers_per_gpu=cfg.data.val_workers_per_gpu,
+ workers_per_gpu=cfg.data.get('val_workers_per_gpu',
+ cfg.data.workers_per_gpu),
dist=distributed,
shuffle=False)
