LAION-AI / CLIP_benchmark

CLIP-like model evaluation
MIT License
535 stars 68 forks source link

Fix silent webdataset error-handling #88

Closed djghosh13 closed 1 year ago

djghosh13 commented 1 year ago

Originally, if nshards.txt didn't exist, I would print a warning and assume nshards = 1. This can cause results to be wrong if streaming from HF due to network issues, and is easy to go undetected. I removed this behavior, so that network issues will raise an exception instead of evaluating on one shard only.