Skip to main content

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

See torchdatasetutil.ipynb for library interface and usage

Imagenet:

  1. Data from kaggle:

    Data from https://www.kaggle.com/competitions/imagenet-object-localization-challenge/data?select=LOC_sample_submission.csv

  2. Extract and move validation folder data: https://discuss.pytorch.org/t/issues-with-dataloader-for-imagenet-should-i-use-datasets-imagefolder-or-datasets-imagenet/115742/7
  3. Zip ILSVRC/Data/CLS-LOC/ to ILSVRC2012_devkit_t12.tar.gz
    tar -czvf ILSVRC2012_devkit_t12.tar.gz ILSVRC/Data/CLS-LOC
    

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

torchdatasetutil-0.0.80.tar.gz (35.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

torchdatasetutil-0.0.80-py3-none-any.whl (47.3 kB view details)

Uploaded Python 3

File details

Details for the file torchdatasetutil-0.0.80.tar.gz.

File metadata

  • Download URL: torchdatasetutil-0.0.80.tar.gz
  • Upload date:
  • Size: 35.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.56.0 CPython/3.8.10

File hashes

Hashes for torchdatasetutil-0.0.80.tar.gz
Algorithm Hash digest
SHA256 1aa04bf5994025bc901fb3f30a55b4dd8ac12d009980c2f7e7693313aa887dde
MD5 be86e48e2bbc18797f0b163e4368a41b
BLAKE2b-256 d5126ba1faea6f85f22d44584447c909c0096729f9fa9ab05e41f73f7e3e94f0

See more details on using hashes here.

File details

Details for the file torchdatasetutil-0.0.80-py3-none-any.whl.

File metadata

  • Download URL: torchdatasetutil-0.0.80-py3-none-any.whl
  • Upload date:
  • Size: 47.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.56.0 CPython/3.8.10

File hashes

Hashes for torchdatasetutil-0.0.80-py3-none-any.whl
Algorithm Hash digest
SHA256 bdf998c23dc6cb48fcebefc0bb9ca55ae8e4d694cd61347aad03b171bef10d0f
MD5 8a5f89c4d68c4addc20662dc2037c68d
BLAKE2b-256 6b7055f51048a49ee6cd2b5559a1fc61ee8e2479b305e13096592e06e1e45b82

See more details on using hashes here.

Supported by

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