Skip to main content

GeDa

GeDa is a Python package that helps you to Get the Data for your project easily.

Installation

pip install geda

Usage

Using specific data provider class

from geda.data_providers.voc import VOCSemanticSegmentationDataProvider

root = "<directory>/<to>/<store>/<data>" # e.g. "data/VOC"
dataprovider = VOCSemanticSegmentationDataProvider(root)
dataprovider.get_data()

Using get_data shortcut

from geda import get_data

root = "<directory>/<to>/<store>/<data>" # e.g. "data/VOC"
dataprovider = get_data(name="VOC_SemanticSegmentation", root=root)
dataprovider.get_data()

The get_data function currently supported names: MNIST, DUTS, NYUDv2, VOC_InstanceSegmentation, VOC_SemanticSegmentation, VOC_PersonPartSegmentation, VOC_Main, VOC_Action, VOC_Layout, MPII, COCO_Keypoints

What it does

By using dataprovider.get_data() functionality, the data is subjected to the following pipeline:

  1. Download the data from source (specified by the _URLS variable in each module)
  2. Unzip the files if needed (in case of tar, zip or gz files downloaded)
  3. Move the files to <root>/raw directory
  4. Find the split ids (file basenames or indices - depending on the dataset)
  5. Arrange files, i.e. move (or copy) files from <root>/raw directory to task-specific directories
  6. [Optional] Create labels in specific format (f.e. YOLO)

Example

Resulting directory structure of the get_data(name="VOC_SemanticSegmentation", root="data/VOC")

.
└── data
    └── VOC
        ├── raw
        │   ├── Annotations
        │   ├── ImageSets
        │   ├── JPEGImages
        │   ├── SegmentationClass
        │   └── SegmentationObject
        ├── SegmentationClass
        │   ├── annots
        │   ├── images
        │   ├── labels
        │   └── masks
        └── trainval_2012.tar

Currently supported datasets

Image classification

Image Segmentation

Keypoints detection

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Release files for geda 0.1.17

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geda 0.1.17
File Size Uploaded
geda-0.1.17.tar.gz 20.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for geda 0.1.17
File Interpreter ABI Platform
geda-0.1.17-py3-none-any.whl Python 3 none any Details

Total release size: 50.0 kB

Release files / geda-0.1.17.tar.gz

Download URL geda-0.1.17.tar.gz
Size 20.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ed1c45762e7baaff2918b8e3234a7f98d7871b91255089db5801d04089a1b344
BLAKE2b-256 checksum
How to use checksums
ce59dffce527f47019241b0b6da133bb8d1560d8e3b4884473aa970b9a00d39c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-39-generic

Release files / geda-0.1.17-py3-none-any.whl

Download URL geda-0.1.17-py3-none-any.whl
Size 29.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d458137bbb3187c9039b5bfb245d00207fb655b2505cd0ecc1765bc7f249880
BLAKE2b-256 checksum
How to use checksums
15c94d64ca4ad26cee5767727a111231bbd3cee65bdc2b85302ef97f1983a870
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-39-generic

Release history Release notifications | RSS feed

This release

0.1.17 This release

2 release files

0.1.16

2 release files

0.1.15

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page