img2dataset is a high-performance library to download and convert a set of image URLs into an image dataset, supporting various output formats such as parquet, webdataset, and local folders. Current version is 1.47.0, with frequent releases every few weeks.
pip install img2datasetVerified import paths — ran on the pinned version, not inferred.
Download images from a CSV file with columns 'url' (and optional 'caption'). Saves as individual files in output_folder.
Set the environment variable `TMPDIR` to a directory with sufficient space.
Replace `image_size=256` with `resize_mode='center_crop'` and `resize_size=256`.
Use `output_format='files'` for small datasets or adjust `webdataset_num_samples_per_shard`.
Change `input_format='list'` to `input_format='csv'` and adjust input file format accordingly.
Check that the URL is valid and accessible. Increase `timeout` parameter or set `retry_delay` and `max_retries`.
Provide an absolute path or ensure the file exists relative to the current working directory.
No dependency data recorded yet.