Skip to content
Snippets Groups Projects
Commit 58e7cc55 authored by Engin Eren's avatar Engin Eren
Browse files

Adding nworkers..

parent 47cf9a21
No related branches found
No related tags found
1 merge request!3Test
Pipeline #3993639 passed
......@@ -161,6 +161,10 @@ def parse_args():
parser.add_argument('--epochs', type=int, default=1, metavar='N',
help='number of epochs to train (default: 1)')
parser.add_argument('--nworkers', type=int, default=1, metavar='N',
help='number of epochs to train (default: 1)')
parser.add_argument('--lrCrit', type=float, default=0.00001, metavar='LR',
help='learning rate Critic (default: 0.00001)')
parser.add_argument('--lrGen', type=float, default=0.0001, metavar='LR',
......@@ -252,7 +256,7 @@ def run(args):
sampler = DistributedSampler(dataset, shuffle=True)
train_loader = DataLoader(dataset, batch_size=args.batch_size, sampler=sampler, num_workers=1, drop_last=True, pin_memory=False)
train_loader = DataLoader(dataset, batch_size=args.batch_size, sampler=sampler, num_workers=args.nworkers, drop_last=True, pin_memory=False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment