Skip to content

Commit

Permalink
Fix crash when using --distributed (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryant1410 committed Jan 9, 2024
1 parent c3e1ebc commit 3f1d126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clip_benchmark/datasets/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ def read_txt(fname):
if not cache_dir or not isinstance(cache_dir, str):
cache_dir = None
dataset = (
wds.WebDataset(filepattern, cache_dir=cache_dir)
wds.WebDataset(filepattern, cache_dir=cache_dir, nodesplitter=lambda src: src)
.decode(wds.autodecode.ImageHandler("pil", extensions=["webp", "png", "jpg", "jpeg"]))
)
# Load based on classification or retrieval task
Expand Down

0 comments on commit 3f1d126

Please sign in to comment.