Skip to main content

No project description provided

Project description

PyVirtry

Description

PyVitry is an end-to-end Python package that provides simple and efficient application of Virtual Try On technology. Virtual try-on is an innovative way for customers to visualize clothes, makeup, glasses, and accessories without putting them on physically. Although many research and commercial projects are in progress, there is no library that users can easily use end-to-end. Therefore, we developed a library that can execute virtual try on with a few lines of simple code without complex work. We utilized IDM-VTON which is very powerful and performs well. This model better expresses the texture and pattern of clothes.

Installation and Usage

Prerequisites

To install PyVirtry, you will need the following minimum specifications:

  • Python 3.10 or later
  • System RAM 17GB
  • GPU RAM 18.7GB
  • Disk 62GB

It is assumed that the Pytorch suitable for the user and the cuda version are compatible accordingly.

Getting Started

NOTE: It only currently provides synthetic results for the upper body.

  1. Install PyVirtry library
pip install PyVirtry
  1. Import the library and create an IDMVTON instance.
from PyVirtry.VirtualTryOn import models

model = models.IDMVTON()
  1. You must specify
  • human image path
  • garment image path
  • description of the garment
  • output image path

The description should include the texture, shape, form, type, etc. of the clothing. The more detailed it is, the more helpful it is in expressing the model.

result = model.start_tryon(human_img_path = 'Enter your HUMAN IMAGE PATH',
                           garm_img_path = 'Enter your GARMENT IMAGE PATH', 
                           garment_des = 'Enter the DESCRIPTION OF GARMENT',
                           output_path= 'Enter your OUTPUT PATH')

Reference

This project is based on IDM-VTON. We modified the code to make it work simply.

Licencse

We follow the CC BY-NC-SA 4.0 license specified in IDM-VTON. Please note that this is not intended for commercial use.

Getting Help

If you encounter any issues or have questions, please open an issue on our GitHub page.

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

pyvirtry-1.0.2.tar.gz (759.9 kB view details)

Uploaded Source

Built Distribution

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

PyVirtry-1.0.2-py3-none-any.whl (979.7 kB view details)

Uploaded Python 3

File details

Details for the file pyvirtry-1.0.2.tar.gz.

File metadata

  • Download URL: pyvirtry-1.0.2.tar.gz
  • Upload date:
  • Size: 759.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for pyvirtry-1.0.2.tar.gz
Algorithm Hash digest
SHA256 a35c64014c61bc7253fe80882fcdd80b4514347defd8ea05553c9c1aacecedb5
MD5 17b5993337909ac77760833dab979768
BLAKE2b-256 036a175aa3b952d3ebcdb1036559fdf6263342786bdf0abdcc8f63afbedb343b

See more details on using hashes here.

File details

Details for the file PyVirtry-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: PyVirtry-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 979.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for PyVirtry-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0206e7c464736e30ab0e36861e6e15186b5dfd66d1641d545c919c59e4e9a229
MD5 c78fc6a36f3afef2779394a1787751e3
BLAKE2b-256 913215fd3a64be8a94b105a520fa837fc62d02125f502988f9061164b3b00ebc

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