Datasets:

Modalities:
Text
Formats:
parquet
Languages:
English
ArXiv:
Libraries:
Datasets
Dask
License:

Downloading Images

#7
by marcusinthesky - opened

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?

marcusinthesky changed discussion title from Downloading to Downloading Images

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

HugoLaurencon changed discussion status to closed

Sign up or log in to comment