Downloading Images
Love this project! I have question around usage. I know in the README, you recommend using img2dataset
however, this tool currently has no support for downloading interleaves data like this. Do you have any further recommendations on this front?
Hi!
we do not host the images themselves but a link to the URL.
you need to download the images separately and merge it back to get the interleaved format (i imagine you would want an itnerleaving of pil images and strings).
img2datasets takes list of URLs to download.
alternatively, if you only need a very small subset of the documents (so no bulk downloading), using the processor in the hf transformers implementation of idefics would work do the trick (and handles the image downloading). see https://huggingface.co/HuggingFaceM4/idefics-80b#how-to-get-started-with-the-model for a code snippet