From ddab3802eb96f648ed432f59fb94f542fbf03530 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Wed, 17 Apr 2019 17:59:01 +0200 Subject: [PATCH] updates --- train.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/train.py b/train.py index d81de382..8002c671 100644 --- a/train.py +++ b/train.py @@ -113,7 +113,7 @@ def train( # Dataloader dataloader = DataLoader(dataset, batch_size=batch_size, - num_workers=0, + num_workers=opt.num_workers, shuffle=True, pin_memory=True, collate_fn=dataset.collate_fn, @@ -246,7 +246,7 @@ if __name__ == '__main__': parser.add_argument('--batch-size', type=int, default=16, help='size of each image batch') parser.add_argument('--accumulate', type=int, default=1, help='accumulate gradient x batches before optimizing') parser.add_argument('--cfg', type=str, default='cfg/yolov3-spp.cfg', help='cfg file path') - parser.add_argument('--data-cfg', type=str, default='data/coco_1img.data', help='coco.data file path') + parser.add_argument('--data-cfg', type=str, default='data/coco.data', help='coco.data file path') parser.add_argument('--multi-scale', action='store_true', help='random image sizes per batch 320 - 608') parser.add_argument('--img-size', type=int, default=416, help='pixels') parser.add_argument('--resume', action='store_true', help='resume training flag')