Enable multi-process DataLoader for dreambooth (#950)
This commit is contained in:
parent
bd06dd023f
commit
8332c1a6d9
|
@ -502,7 +502,7 @@ def main():
|
|||
return batch
|
||||
|
||||
train_dataloader = torch.utils.data.DataLoader(
|
||||
train_dataset, batch_size=args.train_batch_size, shuffle=True, collate_fn=collate_fn
|
||||
train_dataset, batch_size=args.train_batch_size, shuffle=True, collate_fn=collate_fn, num_workers=1
|
||||
)
|
||||
|
||||
# Scheduler and math around the number of training steps.
|
||||
|
|
Loading…
Reference in New Issue