Giter Site home page Giter Site logo

xiaozhiob / diffusion-tryon-trainer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nftblackmagic/diffusion-tryon-trainer

0.0 0.0 0.0 18.23 MB

Diffusion-Tryon-Trainer

License: Other

Shell 0.50% C++ 2.70% Python 91.88% C 0.04% Cuda 4.80% Makefile 0.02% Dockerfile 0.07%

diffusion-tryon-trainer's Introduction

This is a unoffical training code for OOTDiffusion

All Contributors

This repository contains the training code for the OOTDiffusion project. We extend our gratitude to the contributions of OOTDiffusion and have built upon this foundation by utilizing Huggingface's Diffusors library to implement training on the VTON dataset for virtual try-on. Our project aims to enhance the accuracy and realism of virtual try-ons through cutting-edge diffusion model technology, providing users with a more authentic try-on experience.

Some results

Sample 1

Install requirements

Python env

conda env create -f environment.yaml
conda activate groot

Data Preparation

VITON-HD

  1. Download VITON-HD dataset
  2. Download pre-warped cloth image/mask from Google Driver or Baidu Cloud and put it under your VITON-HD dataset
  3. Download cloth captions from train Google Driver test Google Driver

After these, the folder structure should look like this (the unpaired-cloth* only included in test directory):

├── VITON-HD
|   ├── test_pairs.txt
|   ├── train_pairs.txt
│   ├── [train | test]
|   |   ├── image
│   │   │   ├── [000006_00.jpg | 000008_00.jpg | ...]
│   │   ├── cloth
│   │   │   ├── [000006_00.jpg | 000008_00.jpg | ...]
│   │   ├── cloth-mask
│   │   │   ├── [000006_00.jpg | 000008_00.jpg | ...]
│   │   ├── cloth-warp
│   │   │   ├── [000006_00.jpg | 000008_00.jpg | ...]
│   │   ├── cloth-warp-mask
│   │   │   ├── [000006_00.jpg | 000008_00.jpg | ...]
│   │   ├── unpaired-cloth-warp
│   │   │   ├── [000006_00.jpg | 000008_00.jpg | ...]
│   │   ├── unpaired-cloth-warp-mask
│   │   │   ├── [000006_00.jpg | 000008_00.jpg | ...]
|   |   ├── cloth_caption
│   │   │   ├── [000006_00.jpg | 000008_00.jpg | ...]

How to run training

bash train_ootd.sh

Inference over CP dataset

Weight preparation

Train the weights or download a pretrained weight from Huggingface The weights need to be put under checkpoints dir.

Run inference

sh inference_test_dataset.sh

Acknowledgements

Our unet code is directly from OOTDiffusion. We also thank DCI-VTON-Virtual-Try-On, our dataset module depends on it.

This code is only for study and research.

Contributors

nftblackmagic
nftblackmagic

💻
Yu (Brian) Yao
Yu (Brian) Yao

💻
Stevada
Stevada

💻
Dingkang Wang
Dingkang Wang

💻
xiaoweilu
xiaoweilu

💻

diffusion-tryon-trainer's People

Contributors

nftblackmagic avatar allcontributors[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.