Ad

img2dataset: Image URL to Dataset Conversion

img2dataset efficiently converts large image URL lists into image datasets by downloading, resizing, and packaging them. It supports captioning and various output formats, suitable for ML training.
Screenshot of rom1504/img2dataset homepage

img2dataset easily transforms extensive collections of image URLs into usable image datasets. The tool streamlines the process of downloading, resizing, and organizing images for machine learning tasks. It supports saving image-text pairs, offering flexibility for multimodal datasets. It primarily utilizes efficient downloading and resizing techniques, with options for high-performance DNS resolution to accelerate the process.

img2dataset stands out with its ability to handle massive datasets (up to 100M URLs) in a reasonable timeframe (e.g., 20 hours on a single machine). It provides clear options for resizing, captioning, and output formats. The flexible usage of directives for handling disallowed headers and the option to use webdataset format enhances integration with various data pipelines. It also supports flexible resizing methods and output formats.

  • URL Input: Accepts lists of image URLs from text files or direct input.
  • Resizing: Supports various resizing methods (no, border, keep_ratio) and interpolation options.
  • Captioning: Handles image-text pairs for creating multimodal datasets.
  • Output Formats: Offers flexible output formats: files, webdataset, parquet, tfrecord, and dummy.
  • Performance Optimization: Supports multiple processes, threads, and fast DNS resolvers for faster downloads.
  • Configuration: Provides various configuration options for image size, output folder, and interpolation methods.
  • API: Exposes a Python API for programmatic interaction with the tool.

img2dataset appears to be a mature project with a substantial number of stars and forks, indicating active community interest. Recent commits suggest ongoing maintenance and development. The comprehensive documentation, including examples and API references, further supports its reliability and usability. The project's demonstrated ability to process very large datasets also points to a robust design.

img2dataset benefits data scientists and machine learning engineers by providing an efficient and flexible solution for creating image datasets from web URLs. It is particularly valuable for projects involving large-scale image data, offering straightforward tools for downloading, resizing, and organizing images. It simplifies data preparation for training various machine learning models, reducing the manual effort required to create usable datasets.

Summarize:
Share:
Stars
4,432
Forks
375
Issues
143
Created
4 years ago
Commit
9 months ago
License
MIT
Archived
No
Updated 16 days ago

Similar Repositories