Skip to content

Commit

Permalink
Quickfix WDS2 (lucidrains#358)
Browse files Browse the repository at this point in the history
Forgot to remove length as an argument to wds.WebDataset(), sorry!
  • Loading branch information
robvanvolt authored Sep 13, 2021
1 parent 55f21ad commit 499b4c9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions train_dalle.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,11 +361,9 @@ def tokenize(s):
image_mapping = {
myimg: imagepreproc
}

num_batches = DATASET_SIZE // BATCH_SIZE


ds = (
wds.WebDataset(DATASET, length=num_batches)
wds.WebDataset(DATASET)
# .shuffle(is_shuffle) # Commented out for WebDataset as the behaviour cannot be predicted yet
.map_dict(**image_text_mapping)
.map_dict(**image_mapping)
Expand Down

0 comments on commit 499b4c9

Please sign in to comment.