Flask App version of https://github.com/minar09/cp-vton-plus
This is CPU based version.
if you find any problem feel free to raise issue.
- Python 3.11 support
- Supporting new version of torch and torchvision.
- torch = 2.0.1
- torchvision = 0.15
- opencv = 4.8.1.78
- fix all the deprecated warning of torch and resolve all isuses regarding dependency.
- now you can upload .JPG, .png/.PNG and .jpeg/.JPEG files. (resolve the .jpg dependency).
- showing both images on result page. original and result.
pip install -r requirements.txt
python application.py
├── static
│ ├── data
│ │ ├── input
│ │ │ ├── cloth
│ │ │ ├── cloth-mask
│ │ │ ├── image
│ │ │ ├── image-mask
│ │ │ ├── image-parse
│ │ │ ├── image-parse-new
│ │ │ ├── pose
│ │ │ ├── warp-cloth
│ │ │ ├── warp-mask
│ │ ├── grid.png
│ │ ├── test_sample_pair.txt
│ └── result (Auto generated)
│ ├── TOM
│ ├── GMM
Download the these models and paste in folder "tryon_utils/checkpoints/"
- Tryon Models
- paste in checkpoints/GMM and checkpoints/TOM
- Graphonomy inference.pth
- paste in checkpoints/
- OpenPose model
- paste in checkpoints/