Utilities to load and use pytorch datasets stored in Minio S3
Project description
Torch Dataset Utilities
The python library torchdatasetutils produces torch DataLoader classes and utility functions for several imaging datasets. This currently includes sets of images and annotations from CVAT, COCO dataset. "torchdatasetutil" uses an s3 object storage to hold dataset data. This enables training and test to be performed on nodes different from where the dataset is stored with application defined credentials. It uses torch PyTorch worker threads to prefetch data for efficient GPU or CPU training and inference.
"torchdatasetutils" takes as an input the pymlutil.s3 object to access the object storage.
Two json or yaml dictionaries are loaded from the object storage to identify and process the dataset: the dataset description and class dictionary. The the dataset description is unique for each type of dataset. The class dictionary is common to all datasets and describes data transformation and data augmentation.
Library structure
- pymlutil.s3: access to object storage
- torchdatasetutil
- gitcoco.getcoco: function to load the COCO dataset from internet archives into object storage
- cocostore
- CocoStore: class providing a python iterator over the coco dataset in object storage
- CocoDataset" class implementing the pytorch Dataset class for the CocoStore iterator
- imstore
See torchdatasetutil.ipynb for library interface and usage
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
Hashes for torchdatasetutil-0.0.41-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fa81f91d924c1db31b15309f9e9d8ca7b5f9e015615541b2dde7b182e8c75fb |
|
MD5 | 976f21d76bc28f318ca330c685c23a91 |
|
BLAKE2b-256 | 1ca13a688e6d10272ba0d70082e57c0b7e25377788a739728821f34f75a5162e |