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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file computer_vision_datasets-0.2.1.tar.gz
.
File metadata
- Download URL: computer_vision_datasets-0.2.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ed32a506c185b7594791b9b6fc6fca31a877476002a8e593feab524b2f1ab57 |
|
MD5 | f4de22cf09196a30edd21265b4253af3 |
|
BLAKE2b-256 | 27f091c1d3b67444f4987527702fa63ee7d27388c3da565791e909fa619dbff9 |
File details
Details for the file computer_vision_datasets-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: computer_vision_datasets-0.2.1-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10833bbc2a46d7bb09ead0e9c2b3b5915cc0296e478edcd58ef4e681afe10d57 |
|
MD5 | 4c2831cb060ee665b00d021c9c3ae774 |
|
BLAKE2b-256 | 01fad7ec8c282ff8e245266dff9bf9eefc458c9fdea01161b71e09201f024f9d |