Skip to main content

Open, Clean Datasets for Computer Vision.

Project description

PyPi PyPi PyPi License


Visual Layer Logo

Open, Clean, Curated Datasets for Computer Vision


🔥 We use fastdup - a free tool to clean all datasets shared in this repo.
Explore the docs »
Report Issues · Read Blog · Get In Touch · About Us

Logo Logo Logo Logo Logo

Description

vl-datasets is a Python package that provides access to clean computer vision datasets with only 2 lines of code.

For example, to get access to the clean version of the Food-101 dataset simply run:

image

We support some of the most widely used computer vision datasets. Let us know if you have additional request to support a new dataset.

All the datasets are analyzed for issues such as:

  • Duplicates.
  • Broken images.
  • Outliers.
  • Dark/Bright/Blurry images.

image

vl-datasets provides a convenient way to access these cleaned datasets in Python.

Alternatively, for each dataset in this repo, we provide a .csv file that lists the problematic images from the dataset.

You can use the listed images in the .csv to improve the model by re-labeling the them or just simply remove it from the dataset.

Why?

Computer vision is an exciting and rapidly advancing field, with new techniques and models emerging now and then. However, to develop and evaluate these models, it's essential to have reliable and standardized datasets to work with.

Even with the recent success of generative models, data quality remains an issue that's mainly overlooked. Training models will erroneours data impacts model accuracy, incurs costs in time, storage and computational resources.

We believe that access to clean and high-quality computer vision datasets leads to accurate, non-biased, and efficient model. By providing public access to vl-datasets we hope it helps advance the field of computer vision.

Datasets & Access

We're a startup and we'd like to offer free access to the datasets as much as we can afford to. But in doing so, we'd also need your support.

We're offering select .csv files completely free with no strings attached. For access to our complete dataset and exclusive beta features, all we ask is that you sign up to be a beta tester – it's completely free and your feedback will help shape the future of our platform.

Here is a table of widely used computer vision datasets, issues we found and a link to access the .csv file.

Dataset Issues (WIP) CSV
Food-101
  • Duplicates - 0.24% (12,345)
  • Outliers - 0.85% (456)
  • Broken - 0.85% (456)
  • Blur - 0.85% (456)
  • Dark - 0.85% (456)
  • Bright - 0.85% (456)
Download here.
Oxford-IIIT Pet
  • Duplicates - 0.24% (12,345)
  • Outliers - 0.85% (456)
  • Broken - 0.85% (456)
  • Blur - 0.85% (456)
  • Dark - 0.85% (456)
  • Bright - 0.85% (456)
Download here.
Imagenette
  • Duplicates - 0.24% (12,345)
  • Outliers - 0.85% (456)
  • Broken - 0.85% (456)
  • Blur - 0.85% (456)
  • Dark - 0.85% (456)
  • Bright - 0.85% (456)
Download here.
LAION-1B
  • Duplicates - 0.24% (12,345)
  • Outliers - 0.85% (456)
  • Broken - 0.85% (456)
  • Blur - 0.85% (456)
  • Dark - 0.85% (456)
  • Bright - 0.85% (456)
Request access here.
Imagenet-21k
  • Duplicates - 0.24% (12,345)
  • Outliers - 0.85% (456)
  • Broken - 0.85% (456)
  • Blur - 0.85% (456)
  • Dark - 0.85% (456)
  • Bright - 0.85% (456)
Request access here.
Imagenet-1k
  • Duplicates - 0.24% (12,345)
  • Outliers - 0.85% (456)
  • Broken - 0.85% (456)
  • Blur - 0.85% (456)
  • Dark - 0.85% (456)
  • Bright - 0.85% (456)
Request access here.
KITTI
  • Duplicates - 0.24% (12,345)
  • Outliers - 0.85% (456)
  • Broken - 0.85% (456)
  • Blur - 0.85% (456)
  • Dark - 0.85% (456)
  • Bright - 0.85% (456)
Request access here.
DeepFashion
  • Duplicates - 0.24% (12,345)
  • Outliers - 0.85% (456)
  • Broken - 0.85% (456)
  • Blur - 0.85% (456)
  • Dark - 0.85% (456)
  • Bright - 0.85% (456)
Request access here.
Places365
  • Duplicates - 0.24% (12,345)
  • Outliers - 0.85% (456)
  • Broken - 0.85% (456)
  • Blur - 0.85% (456)
  • Dark - 0.85% (456)
  • Bright - 0.85% (456)
Request access here.
CelebA-HQ
  • Duplicates - 0.24% (12,345)
  • Outliers - 0.85% (456)
  • Broken - 0.85% (456)
  • Blur - 0.85% (456)
  • Dark - 0.85% (456)
  • Bright - 0.85% (456)
Request access here.
ADE20K
  • Duplicates - 0.24% (12,345)
  • Outliers - 0.85% (456)
  • Broken - 0.85% (456)
  • Blur - 0.85% (456)
  • Dark - 0.85% (456)
  • Bright - 0.85% (456)
Request access here.
COCO
  • Duplicates - 0.24% (12,345)
  • Outliers - 0.85% (456)
  • Broken - 0.85% (456)
  • Blur - 0.85% (456)
  • Dark - 0.85% (456)
  • Bright - 0.85% (456)
Request access here.

Learn more on how we clean the datasets using our profilling tool here.

Installation

Option 1 - Install vl_datasets package from PyPI:

pip install vl-datasets

Option 2 - Install the bleeding edge version on GitHub:

pip install git+https://github.com/visual-layer/vl-datasets.git@main --upgrade

Usage

To start using vl-datasets, import the clean version of the dataset with:

from vl_datasets import CleanFood101

This should import the clean version of the Food101 dataset.

Next, you can load the dataset as a PyTorch Dataset.

train_dataset = CleanFood101('./', split='train')
valid_dataset = CleanFood101('./', split='test')

If you have a custom .csv file you can optionally pass in the file:

train_dataset = CleanFood101('./', split='train', exclude_csv='my-file.csv')

The filenames listed in the .csv will be excluded in the dataset.

Next, you can load the train and validation datasets in a PyTorch training loop.

See the Learn from Examples section to learn more.

NOTE: Sign up here for free to be our beta testers and get full access to the all the .csv files for the dataset listed in this repo.

With the dataset loaded you can train a model using PyTorch training loop.

Learn from Examples

  • Dataset: CleanFood101
  • Framework: PyTorch.
  • Description: Load a dataset and train a PyTorch model.
  • Dataset: CleanOxfordIIITPet
  • Framework: fast.ai.
  • Description: Finetune a pretrained TIMM model using fastai.

License

vl-datasets is licensed under the Apache 2.0 License. See LICENSE.

However, you are bound to the usage license of the original dataset. It is your responsibility to determine whether you have permission to use the dataset under the dataset's license. We provide no warranty or guarantee of accuracy or completeness.

Getting Help

Get help from the Visual Layer team or community members via the following channels -

About Visual-Layer

Visual Layer is founded by the authors of XGBoost, Apache TVM & Turi Create - Danny Bickson, Carlos Guestrin and Amir Alush.

Learn more about Visual Layer here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

vl_datasets-0.0.6-py3.10-none-any.whl (15.1 kB view details)

Uploaded Python 3

vl_datasets-0.0.6-py3.9-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file vl_datasets-0.0.6-py3.10-none-any.whl.

File metadata

File hashes

Hashes for vl_datasets-0.0.6-py3.10-none-any.whl
Algorithm Hash digest
SHA256 9574cc8771373b2fb1566eb612398cd9ca7483c220e41908d079c1a94d494c83
MD5 3e9a9e8f92859f06d8d796ec8c88e714
BLAKE2b-256 bf12d8e65e197a0a9736385bef0863ab62885328fc307696dd41abce8a9cbf40

See more details on using hashes here.

File details

Details for the file vl_datasets-0.0.6-py3.9-none-any.whl.

File metadata

File hashes

Hashes for vl_datasets-0.0.6-py3.9-none-any.whl
Algorithm Hash digest
SHA256 d5038bd469cbb4d0e03944e19a5512ebc8782d1a29f74e2321279a43a7ff2d07
MD5 d99116c54e8e2f8afaa292a39dc7b77b
BLAKE2b-256 22f76ccbfe7d457b6b8bf6769fb301307c2dc8e2134f901f3a65324975f1e205

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page