{"id":15035285,"url":"https://github.com/shinechen1024/magicclothing","last_synced_at":"2025-05-15T20:04:27.703Z","repository":{"id":221079355,"uuid":"753388867","full_name":"ShineChen1024/MagicClothing","owner":"ShineChen1024","description":"Official implementation of Magic Clothing: Controllable Garment-Driven Image Synthesis","archived":false,"fork":false,"pushed_at":"2024-07-29T03:32:56.000Z","size":51103,"stargazers_count":1504,"open_issues_count":61,"forks_count":146,"subscribers_count":37,"default_branch":"main","last_synced_at":"2025-05-11T07:34:19.496Z","etag":null,"topics":["try-on","virtual-tryon","vton"],"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/ShineChen1024.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-02-06T02:39:13.000Z","updated_at":"2025-05-06T09:23:39.000Z","dependencies_parsed_at":"2024-03-14T08:29:43.390Z","dependency_job_id":"93a259de-45a6-418b-896d-101ec5055995","html_url":"https://github.com/ShineChen1024/MagicClothing","commit_stats":null,"previous_names":["chenshine1/oms-diffusion","shinechen1024/oms-diffusion","shinechen1024/magicclothing"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShineChen1024%2FMagicClothing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShineChen1024%2FMagicClothing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShineChen1024%2FMagicClothing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShineChen1024%2FMagicClothing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShineChen1024","download_url":"https://codeload.github.com/ShineChen1024/MagicClothing/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254414499,"owners_count":22067272,"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":["try-on","virtual-tryon","vton"],"created_at":"2024-09-24T20:28:04.787Z","updated_at":"2025-05-15T20:04:21.068Z","avatar_url":"https://github.com/ShineChen1024.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Magic Clothing (ACM Multimedia 2024)\nThis repository is the official implementation of Magic Clothing\n\nMagic Clothing is a branch version of [OOTDiffusion](https://github.com/levihsu/OOTDiffusion), focusing on controllable garment-driven image synthesis\n\n\u003c!-- Please refer to our [previous paper](https://arxiv.org/abs/2403.01779) for more details --\u003e\n\n\u003e **Magic Clothing: Controllable Garment-Driven Image Synthesis** [[arXiv paper](https://arxiv.org/abs/2404.09512)]\u003cbr\u003e\n\u003e [Weifeng Chen](https://github.com/ShineChen1024)\\*, [Tao Gu](https://github.com/T-Gu)\\*, [Yuhao Xu](http://levihsu.github.io/)\\*\u003csup\u003e+\u003c/sup\u003e, [Chengcai Chen](https://www.researchgate.net/profile/Chengcai-Chen)\u003cbr\u003e\n\u003e \\* Equal contribution \u003csup\u003e+\u003c/sup\u003e Corresponding author\u003cbr\u003e\n\u003e Xiao-i Research\n\n📢📢 We are continuing to improve this project. Please check [earlyAccess branch](https://github.com/ShineChen1024/MagicClothing/tree/earlyAccess) for new features and updates : )\n\n## News\n\n🔥 [2024/4/16] Our [paper](https://arxiv.org/abs/2404.09512) is available now!\n\n🔥 [2024/3/8] We release the model weights trained on the 768 resolution. The strength of clothing and text prompts can be independently adjusted.\n\n🤗 [Hugging Face link](https://huggingface.co/ShineChen1024/MagicClothing)\n\n🔥 [2024/2/28] We support [IP-Adapter-FaceID](https://huggingface.co/h94/IP-Adapter-FaceID) with [ControlNet-Openpose](https://github.com/lllyasviel/ControlNet-v1-1-nightly) now! A portrait and a reference pose image can be used as additional conditions.\n\nHave fun with ***gradio_ipadapter_openpose.py***\n\n🔥 [2024/2/23] We support [IP-Adapter-FaceID](https://huggingface.co/h94/IP-Adapter-FaceID) now! A portrait image can be used as an additional condition.\n\nHave fun with ***gradio_ipadapter_faceid.py***\n\n![demo](images/demo.png)\u0026nbsp;\n![workflow](images/workflow.png)\u0026nbsp;\n\n\n## Installation\n\n1. Clone the repository\n\n```sh\ngit clone https://github.com/ShineChen1024/MagicClothing.git\n```\n\n2. Create a conda environment and install the required packages\n\n```sh\nconda create -n magicloth python==3.10\nconda activate magicloth\npip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2\npip install -r requirements.txt\n```\n\n## Inference\n\n1. Python demo\n\n\u003e 512 weights\n\n```sh\npython inference.py --cloth_path [your cloth path] --model_path [your model checkpoints path]\n```\n\n\u003e 768 weights\n\n```sh\npython inference.py --cloth_path [your cloth path] --model_path [your model checkpoints path] --enable_cloth_guidance\n```\n\n2. Gradio demo\n\n\u003e 512 weights\n\n```sh\npython gradio_generate.py --model_path [your model checkpoints path] \n```\n\n\u003e 768 weights\n\n```sh\npython gradio_generate.py --model_path [your model checkpoints path] --enable_cloth_guidance\n```\n\n## Citation\n```\n@article{chen2024magic,\n  title={Magic Clothing: Controllable Garment-Driven Image Synthesis},\n  author={Chen, Weifeng and Gu, Tao and Xu, Yuhao and Chen, Chengcai},\n  journal={arXiv preprint arXiv:2404.09512},\n  year={2024}\n}\n```\n\n## TODO List\n- [x] Paper\n- [x] Gradio demo\n- [x] Inference code\n- [x] Model weights\n- [ ] Training code\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinechen1024%2Fmagicclothing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshinechen1024%2Fmagicclothing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinechen1024%2Fmagicclothing/lists"}