GithubHelp home page GithubHelp logo

complete-dope / magicclothing Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shinechen1024/magicclothing

0.0 0.0 0.0 49.9 MB

Official implementation of Magic Clothing: Controllable Garment-Driven Image Synthesis

License: Other

Shell 0.55% C++ 3.32% Python 90.08% C 0.04% Cuda 5.90% Makefile 0.03% Dockerfile 0.09%

magicclothing's Introduction

Magic Clothing

This repository is the official implementation of Magic Clothing

Magic Clothing is a branch version of OOTDiffusion, focusing on controllable garment-driven image synthesis

Magic Clothing: Controllable Garment-Driven Image Synthesis [arXiv paper]
Weifeng Chen*, Tao Gu*, Yuhao Xu+, Chengcai Chen
* Equal contribution + Corresponding author
Xiao-i Research

๐Ÿ“ข๐Ÿ“ข We are continuing to improve this project. Please check earlyAccess branch for new features and updates : )

News

๐Ÿ”ฅ [2024/4/16] Our paper is available now!

๐Ÿ”ฅ [2024/3/8] We release the model weights trained on the 768 resolution. The strength of clothing and text prompts can be independently adjusted.

๐Ÿค— Hugging Face link

๐Ÿ”ฅ [2024/2/28] We support IP-Adapter-FaceID with ControlNet-Openpose now! A portrait and a reference pose image can be used as additional conditions.

Have fun with gradio_ipadapter_openpose.py

๐Ÿ”ฅ [2024/2/23] We support IP-Adapter-FaceID now! A portrait image can be used as an additional condition.

Have fun with gradio_ipadapter_faceid.py

demoย  workflowย 

Installation

  1. Clone the repository
git clone https://github.com/ShineChen1024/MagicClothing.git
  1. Create a conda environment and install the required packages
conda create -n magicloth python==3.10
conda activate magicloth
pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2
pip install -r requirements.txt

Inference

  1. Python demo

512 weights

python inference.py --cloth_path [your cloth path] --model_path [your model checkpoints path]

768 weights

python inference.py --cloth_path [your cloth path] --model_path [your model checkpoints path] --enable_cloth_guidance
  1. Gradio demo

512 weights

python gradio_generate.py --model_path [your model checkpoints path] 

768 weights

python gradio_generate.py --model_path [your model checkpoints path] --enable_cloth_guidance

Citation

@article{chen2024magic,
  title={Magic Clothing: Controllable Garment-Driven Image Synthesis},
  author={Chen, Weifeng and Gu, Tao and Xu, Yuhao and Chen, Chengcai},
  journal={arXiv preprint arXiv:2404.09512},
  year={2024}
}

TODO List

  • Paper
  • Gradio demo
  • Inference code
  • Model weights
  • Training code

magicclothing's People

Contributors

shinechen1024 avatar levihsu avatar t-gu 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.