No project description provided
Project description
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_datafunction 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:
- Download the data from source (specified by the
_URLSvariable in each module) - Unzip the files if needed (in case of
tar,ziporgzfiles downloaded) - Move the files to
<root>/rawdirectory - Find the split ids (file basenames or indices - depending on the dataset)
- Arrange files, i.e. move (or copy) files from
<root>/rawdirectory to task-specific directories - [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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file geda-0.1.17.tar.gz.
File metadata
- Download URL: geda-0.1.17.tar.gz
- Upload date:
- Size: 20.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-39-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed1c45762e7baaff2918b8e3234a7f98d7871b91255089db5801d04089a1b344
|
|
| MD5 |
6b51292b989171620215989e6f01c194
|
|
| BLAKE2b-256 |
ce59dffce527f47019241b0b6da133bb8d1560d8e3b4884473aa970b9a00d39c
|
File details
Details for the file geda-0.1.17-py3-none-any.whl.
File metadata
- Download URL: geda-0.1.17-py3-none-any.whl
- Upload date:
- Size: 29.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-39-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d458137bbb3187c9039b5bfb245d00207fb655b2505cd0ecc1765bc7f249880
|
|
| MD5 |
cc5cd354d806e5325ddff3c9bc7dfac1
|
|
| BLAKE2b-256 |
15c94d64ca4ad26cee5767727a111231bbd3cee65bdc2b85302ef97f1983a870
|