{"id":13487795,"url":"https://github.com/levihsu/OOTDiffusion","last_synced_at":"2025-03-27T23:31:40.291Z","repository":{"id":218867186,"uuid":"747568453","full_name":"levihsu/OOTDiffusion","owner":"levihsu","description":"[AAAI 2025] Official implementation of \"OOTDiffusion: Outfitting Fusion based Latent Diffusion for Controllable Virtual Try-on\"","archived":false,"fork":false,"pushed_at":"2024-05-13T08:50:07.000Z","size":27930,"stargazers_count":6160,"open_issues_count":84,"forks_count":881,"subscribers_count":77,"default_branch":"main","last_synced_at":"2025-03-20T20:36:13.662Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/levihsu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-24T07:39:15.000Z","updated_at":"2025-03-20T16:24:09.000Z","dependencies_parsed_at":"2024-11-20T15:04:38.249Z","dependency_job_id":null,"html_url":"https://github.com/levihsu/OOTDiffusion","commit_stats":null,"previous_names":["levihsu/ootdiffusion"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levihsu%2FOOTDiffusion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levihsu%2FOOTDiffusion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levihsu%2FOOTDiffusion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levihsu%2FOOTDiffusion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/levihsu","download_url":"https://codeload.github.com/levihsu/OOTDiffusion/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245931864,"owners_count":20695963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T18:01:03.991Z","updated_at":"2025-03-27T23:31:40.238Z","avatar_url":"https://github.com/levihsu.png","language":"Python","readme":"# OOTDiffusion\nThis repository is the official implementation of OOTDiffusion\n\n🤗 [Try out OOTDiffusion](https://huggingface.co/spaces/levihsu/OOTDiffusion)\n\n(Thanks to [ZeroGPU](https://huggingface.co/zero-gpu-explorers) for providing A100 GPUs)\n\n\u003c!-- Or [try our own demo](https://ootd.ibot.cn/) on RTX 4090 GPUs --\u003e\n\n\u003e **OOTDiffusion: Outfitting Fusion based Latent Diffusion for Controllable Virtual Try-on** [[arXiv paper](https://arxiv.org/abs/2403.01779)]\u003cbr\u003e\n\u003e [Yuhao Xu](http://levihsu.github.io/), [Tao Gu](https://github.com/T-Gu), [Weifeng Chen](https://github.com/ShineChen1024), [Chengcai Chen](https://www.researchgate.net/profile/Chengcai-Chen)\u003cbr\u003e\n\u003e Xiao-i Research\n\n\nOur model checkpoints trained on [VITON-HD](https://github.com/shadow2496/VITON-HD) (half-body) and [Dress Code](https://github.com/aimagelab/dress-code) (full-body) have been released\n\n* 🤗 [Hugging Face link](https://huggingface.co/levihsu/OOTDiffusion) for ***checkpoints*** (ootd, humanparsing, and openpose)\n* 📢📢 We support ONNX for [humanparsing](https://github.com/GoGoDuck912/Self-Correction-Human-Parsing) now. Most environmental issues should have been addressed : )\n* Please also download [clip-vit-large-patch14](https://huggingface.co/openai/clip-vit-large-patch14) into ***checkpoints*** folder\n* We've only tested our code and models on Linux (Ubuntu 22.04)\n\n![demo](images/demo.png)\u0026nbsp;\n![workflow](images/workflow.png)\u0026nbsp;\n\n## Installation\n1. Clone the repository\n\n```sh\ngit clone https://github.com/levihsu/OOTDiffusion\n```\n\n2. Create a conda environment and install the required packages\n\n```sh\nconda create -n ootd python==3.10\nconda activate ootd\npip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2\npip install -r requirements.txt\n```\n\n## Inference\n1. Half-body model\n\n```sh\ncd OOTDiffusion/run\npython run_ootd.py --model_path \u003cmodel-image-path\u003e --cloth_path \u003ccloth-image-path\u003e --scale 2.0 --sample 4\n```\n\n2. Full-body model \n\n\u003e Garment category must be paired: 0 = upperbody; 1 = lowerbody; 2 = dress\n\n```sh\ncd OOTDiffusion/run\npython run_ootd.py --model_path \u003cmodel-image-path\u003e --cloth_path \u003ccloth-image-path\u003e --model_type dc --category 2 --scale 2.0 --sample 4\n```\n\n## Citation\n```\n@article{xu2024ootdiffusion,\n  title={OOTDiffusion: Outfitting Fusion based Latent Diffusion for Controllable Virtual Try-on},\n  author={Xu, Yuhao and Gu, Tao and Chen, Weifeng and Chen, Chengcai},\n  journal={arXiv preprint arXiv:2403.01779},\n  year={2024}\n}\n```\n\n## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=levihsu/OOTDiffusion\u0026type=Date)](https://star-history.com/#levihsu/OOTDiffusion\u0026Date)\n\n## TODO List\n- [x] Paper\n- [x] Gradio demo\n- [x] Inference code\n- [x] Model weights\n- [ ] Training code\n","funding_links":[],"categories":["Python","Personalized Restoration","AI 绘画 / 音频视频创作 \u003ca name=\"index--art\"\u003e\u0026nbsp;\u003c/a\u003e","Repos","Image-based (2D) Virtual Try-on"],"sub_categories":["其他创作工具"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevihsu%2FOOTDiffusion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flevihsu%2FOOTDiffusion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevihsu%2FOOTDiffusion/lists"}