Simple VTON and Imaterialist data parser written in pure Python
Project description
vton-imaterialist
A python package for Binary Segmentation DataSet ( vton_plus and imaterialist [topwear])
📚 PyPi Project Documentation 📚
Download dataset
Note - This step can be performed after installing package as well.
Download dataset from following drive and unzip it.
Install package
Installation with pypi
pip3 install python-vtonimat
Installation from source
git clone https://github.com/aarti-b/vton-imaterialist
python3 setup.py install
Set path to use package outside directory
export PYTHONPATH="$PYTHONPATH:/path_to_github-clone-package/package/package/"
Usage Guide
There are two datasets this package focuses on
- vton
- imaterialist
vton dataset
default option for dataset is vton. Follow the following commands to load data. assign path value to the folder where data is downloaded and unzipped.
Load whole data
from vtonimat import SegData
images, labels = SegData(path='path_to_datafiles').load_training()
Load batchwise dataset
Load by batches. Following command returns list of batches. Batch size is input parameter in method load_training_in_batches.
Load whole data
from vton import SegData
images, labels = SegData().load_training_in_batches(1000)
imaterialist'19 topwear dataset
from vtonimat import SegData
images, labels = SegData(path='path_to_datafiles', dataset='imat19').load_training()
Load batchwise dataset
Load by batches. Following command returns list of batches. Batch size is input parameter in method load_training_in_batches.
from vton import SegData
images, labels = SegData().load_training_in_batches(1000)
There is a python file convert.py to convert dataset to ubyte format the dataset you downloaded from google drive link. This file converts 3D images and 2D labels images to ubyte format.
Usage to convert data
python3 convert.py train 0 #0 is ratio, which means whole data is converted to train. you can add proportions.
python3 convert.py test 0
This package is still in progress. If you find any issue please feel free to contact or create a new issue. You are welcome to contribute in this project.
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 python-vtonimat-0.12.tar.gz.
File metadata
- Download URL: python-vtonimat-0.12.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a1482fa11297582ec524c4b5647ecc5c48c107f9a33dde41b7703d636f19c3e
|
|
| MD5 |
75882e744dab720c47591bcef344705b
|
|
| BLAKE2b-256 |
a89033910ec774dcc9605b605f359316719f29b1915f4e96af2222eacdd8ab24
|
File details
Details for the file python_vtonimat-0.12-py3-none-any.whl.
File metadata
- Download URL: python_vtonimat-0.12-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38d7dc080eb1d97bdc8214c879a62dab31f6947e3e6758a1146a1ee0844a7376
|
|
| MD5 |
97abf5bbc981c38e20768e4b9deb6b58
|
|
| BLAKE2b-256 |
8498a2b3fba3555e95d786c0b890fdd596c80d5591b851e4b0a303f8ad8e77e9
|