Skip to main content

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.

gdrive

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.

Release files for python-vtonimat 0.12

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

Source distribution (sdist)

Source distribution for python-vtonimat 0.12
File Size Uploaded
python-vtonimat-0.12.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-vtonimat 0.12
File Interpreter ABI Platform
python_vtonimat-0.12-py3-none-any.whl Python 3 none any Details

Total release size: 5.7 kB

Release files / python-vtonimat-0.12.tar.gz

Download URL python-vtonimat-0.12.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5a1482fa11297582ec524c4b5647ecc5c48c107f9a33dde41b7703d636f19c3e
BLAKE2b-256 checksum
How to use checksums
a89033910ec774dcc9605b605f359316719f29b1915f4e96af2222eacdd8ab24
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / python_vtonimat-0.12-py3-none-any.whl

Download URL python_vtonimat-0.12-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38d7dc080eb1d97bdc8214c879a62dab31f6947e3e6758a1146a1ee0844a7376
BLAKE2b-256 checksum
How to use checksums
8498a2b3fba3555e95d786c0b890fdd596c80d5591b851e4b0a303f8ad8e77e9
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.12 This release

2 release files

0.11

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