Skip to main content

Easy Computer Vision Datasets

Project description

Computer Vision Datasets

datasetninja.com has an impressive collection of comptuer vision datasets. This package was built to let you easily download and use these computer vision datasets.

Installation

pip install computer_vision_datasets should work. If not, go to the repository and paste the file in your code. The repository is in https://github.com/franchesoni/computer_vision_datasets.

Available datasets (code)

To check the available datasets, simply run

from computer_vision_datasets import get_released_datasets
print(sorted(get_released_datasets().keys()))

Download a dataset

Find the name of the dataset you want with the code above. Here we use 'ADE20K'.

from computer_vision_datasets import download
download('ADE20K', '/your/destination/directory')

The SegDataset class

There is a SegDataset class for segmentation datasets. You just need to point it to the dataset path. Example:

ds = SegDataset(ds_path, split='test')

You can, for instance, wrap it in a Pytorch Dataset:

from torch.utils.data import Dataset

class PyTorchWrapperDataset(Dataset):
    def __init__(self, ds):
        # super().__init__() is not needed since we're not overriding anything from the parent's __init__
        self.original_dataset = ds

    def __getitem__(self, index):
        # Assuming the original dataset uses __getitem__ to access items
        # If it uses a different method (like get_item), adjust accordingly.
        return self.original_dataset[index]

    def __len__(self):
        return len(self.original_dataset)

Project details


Download files

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

Source Distribution

computer_vision_datasets-0.2.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

computer_vision_datasets-0.2.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file computer_vision_datasets-0.2.1.tar.gz.

File metadata

File hashes

Hashes for computer_vision_datasets-0.2.1.tar.gz
Algorithm Hash digest
SHA256 8ed32a506c185b7594791b9b6fc6fca31a877476002a8e593feab524b2f1ab57
MD5 f4de22cf09196a30edd21265b4253af3
BLAKE2b-256 27f091c1d3b67444f4987527702fa63ee7d27388c3da565791e909fa619dbff9

See more details on using hashes here.

File details

Details for the file computer_vision_datasets-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for computer_vision_datasets-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 10833bbc2a46d7bb09ead0e9c2b3b5915cc0296e478edcd58ef4e681afe10d57
MD5 4c2831cb060ee665b00d021c9c3ae774
BLAKE2b-256 01fad7ec8c282ff8e245266dff9bf9eefc458c9fdea01161b71e09201f024f9d

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