Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
diffusers
Commits
8332c1a6
Unverified
Commit
8332c1a6
authored
Oct 26, 2022
by
Simon Kirsten
Committed by
GitHub
Oct 26, 2022
Browse files
Enable multi-process DataLoader for dreambooth (#950)
parent
bd06dd02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/dreambooth/train_dreambooth.py
examples/dreambooth/train_dreambooth.py
+1
-1
No files found.
examples/dreambooth/train_dreambooth.py
View file @
8332c1a6
...
@@ -502,7 +502,7 @@ def main():
...
@@ -502,7 +502,7 @@ def main():
return
batch
return
batch
train_dataloader
=
torch
.
utils
.
data
.
DataLoader
(
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.
# Scheduler and math around the number of training steps.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment