Skip to content

Commit 3496fc2

Browse files
committed
shuffle and drop last
1 parent 46183cc commit 3496fc2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "rectified-flow-pytorch"
3-
version = "0.0.11"
3+
version = "0.0.12"
44
description = "Rectified Flow in Pytorch"
55
authors = [
66
{ name = "Phil Wang", email = "[email protected]" }

rectified_flow_pytorch/rectified_flow.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ def __init__(
736736

737737
self.model = rectified_flow
738738
self.optimizer = Adam(rectified_flow.parameters(), lr = learning_rate, **adam_kwargs)
739-
self.dl = DataLoader(dataset, batch_size = batch_size)
739+
self.dl = DataLoader(dataset, batch_size = batch_size, shuffle = True, drop_last = True)
740740

741741
self.model, self.optimizer, self.dl = self.accelerator.prepare(self.model, self.optimizer, self.dl)
742742

0 commit comments

Comments
 (0)