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.1.tar.gz (751.5 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.1-py3-none-any.whl (939.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyvirtry-1.0.1.tar.gz
  • Upload date:
  • Size: 751.5 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.1.tar.gz
Algorithm Hash digest
SHA256 30e6695a844d5cb66fa53fd65aadecaa0d61d2261097680450eeb8c4d097ea0b
MD5 28d47e9768207c5a1a0d707c791fd7c7
BLAKE2b-256 3ae0447774aee944277a399aacf3e0864667da6ecbffc1f9d62e02cd0ee54e27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyVirtry-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 939.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 65bab3935d03adefd19f2b4d5311b674345e2ad0e0436993ba3878497c62169f
MD5 d64d651276401083063c13f556a566e9
BLAKE2b-256 5f8a8b74da93c257d8bcf6561bd29f1ec1e626a96f5bb1402db9db7b4c959b2a

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