Skip to main content

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])

Download dataset

Note - This step can be performed after installing package as well.

#Download dataset from following drive and unzip it.
https://drive.google.com/drive/folders/1cGp0-s5p8n4oNnZr5AM_AaYCVzlJbkCo?usp=sharing

Install package

Installation with pypi

pip3 install <Inprocess >

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-vtonimat-0.11.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

python_vtonimat-0.11-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file python-vtonimat-0.11.tar.gz.

File metadata

  • Download URL: python-vtonimat-0.11.tar.gz
  • Upload date:
  • Size: 2.5 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

Hashes for python-vtonimat-0.11.tar.gz
Algorithm Hash digest
SHA256 44b78b2ffdfe11fb26246ec0e53eb2b0a700ea45bb84927f21b279559f44a5e9
MD5 6c32a39c956670d5810551e94e14fa1f
BLAKE2b-256 0d98e9657419c421f7cfcb73f2b9bfa88c702d90e8ccc4173c34a6602fd66ee6

See more details on using hashes here.

File details

Details for the file python_vtonimat-0.11-py3-none-any.whl.

File metadata

  • Download URL: python_vtonimat-0.11-py3-none-any.whl
  • Upload date:
  • Size: 2.9 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

Hashes for python_vtonimat-0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 732c0a9870d3fe4cfee35b44f3074ac0e99b47c02736ed3334d254217a0dc4ec
MD5 6edb3e21926aefc42f1047e793390ba6
BLAKE2b-256 1a47e90e84c00d86dcee794040f338da4d65aef0d2356402b41996eeee3959cb

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