Skip to content

Commit 499b4c9

Browse files
authored
Quickfix WDS2 (lucidrains#358)
Forgot to remove length as an argument to wds.WebDataset(), sorry!
1 parent 55f21ad commit 499b4c9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

train_dalle.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,11 +361,9 @@ def tokenize(s):
361361
image_mapping = {
362362
myimg: imagepreproc
363363
}
364-
365-
num_batches = DATASET_SIZE // BATCH_SIZE
366-
364+
367365
ds = (
368-
wds.WebDataset(DATASET, length=num_batches)
366+
wds.WebDataset(DATASET)
369367
# .shuffle(is_shuffle) # Commented out for WebDataset as the behaviour cannot be predicted yet
370368
.map_dict(**image_text_mapping)
371369
.map_dict(**image_mapping)

0 commit comments

Comments
 (0)