Skip to content

Commit

Permalink
No shuffle option for sd3
Browse files Browse the repository at this point in the history
  • Loading branch information
deepdelirious committed Dec 12, 2024
1 parent bb51bf7 commit d9035d7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sd3_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ def train(args):
train_dataloader = torch.utils.data.DataLoader(
train_dataset_group,
batch_size=1,
shuffle=True,
shuffle=not args.no_shuffle,
collate_fn=collator,
num_workers=n_workers,
persistent_workers=args.persistent_data_loader_workers,
Expand Down Expand Up @@ -1079,6 +1079,11 @@ def setup_parser() -> argparse.ArgumentParser:
action="append",
nargs=2
)
parser.add_argument(
"--no_shuffle",
action="store_true",
help="do not use shuffle in the dataloader - rely on the underlying dataset",
)
return parser


Expand Down

0 comments on commit d9035d7

Please sign in to comment.