CoolFace
Modelpublic

foduucom/StyleShift-ClothSwap

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
2likes
README.md134 linesDownload Raw Back to root
1---2language:3- en4tags:5- ClothSwap6- TryOn7- StyleChange8- DressChange9- ClothShift10- TryCloth11- FashionNew12- SwapCloth13- DressSwap14- OutfitSwap15license: apache-2.016---17##  StyleShift - Cloth Swap / Dress Swap / Style Change / Outfit Swap18 19This project showcases a Cloth Swap feature, leveraging the powerful capabilities of ComfyUI, a modular and flexible interface for AI workflows. This guide provides step-by-step instructions to set up, use, and contribute to the project.20 21<div align="center">22  <img width="600" height="500" alt="foduucom/ClothSwap" src="https://huggingface.co/foduucom/StyleShift-ClothSwap/resolve/main/output.png">23</div>24 25## Objective26 27The primary objective is to provide a simple, effective, and customizable tool for tasks such as virtual try-ons, creative prototyping, and realistic clothing mockups. Whether you're an e-commerce platform, a fashion designer, or just experimenting with image manipulation, this project offers endless possibilities.28 29## Clone and Setup ComfyUI Repository30 31Install ComfyUI by cloning its main repository:32 33```bash34git clone https://github.com/comfyanonymous/ComfyUI.git35cd ComfyUI36```37Install dependencies:38 39```bash40pip install -r requirements.txt41```42 43Install ComfyUI Manager:44 45go to ComfyUI/custom_nodes dir in terminal(cmd) and clone this repo:46 47```bash48git clone https://github.com/ltdrdata/ComfyUI-Manager.git49```50**Restart ComfyUI**51 52To Start ComfyUI:53 54```bash55python3 main.py56```57Note: ComfyUI requires Python 3.9 or above. Ensure all required dependencies are installed.58 59Now Go to Manager ->-> Custom Nodes Manager and install this two nodes **ComfyUI Layer Style** and **ComfyUI_CatVTON_Wrapper**, restart and reload the page.60 61<div align="center">62  <img width="800" height="800" alt="foduucom/ClothSwap" src="https://huggingface.co/foduucom/ClothSwap/resolve/main/custom_nodes.png">63</div>64 65Place the **sam_vit_h_4b8939.pth** model inside ComfyUI/models/sams directory and **groundingdino_swint_ogc.pth** model in ComfyUI/models/grounding-dino directory if not download it.66(If directory name not there in ComfyUI/models/ create new)67 68- For Reference you can download model by below link:69https://huggingface.co/foduucom/StyleShift-ClothSwap/resolve/main/sam_vit_h_4b8939.pth70https://huggingface.co/foduucom/StyleShift-ClothSwap/resolve/main/groundingdino_swint_ogc.pth71 72## Clone this Repository73Clone the repository containing the Cloth Swap JSON workflows and assets:74 75```bash76git clone https://huggingface.co/foduucom/StyleShift-ClothSwap77cd StyleShift-ClothSwap78```79 80## How to use81 82- Start **ComfyUI** (by running python3 main.py)83- Open ComfyUI in your browser (default: http://127.0.0.1:8188)84- Click on **Load button** in menu bar and select the **workflow.json** file provided in this repository85- Now click on **Queue Prompt** for generate output86 87or you can use by python script provided in this repository:88```bash 89python3 main.py90 91#Remember change the input paths in script here :92#prompt["2"]["inputs"]["image"] = "\\ put your input person pose image"93#prompt["3"]["inputs"]["image"] = "\\ put your input cloth image"94```95 96## Using Cloth Swap97 98- Prepare your input images (ensure proper resolution for better results)99- Select the uploaded workflow in ComfyUI100- Provide necessary inputs as per the workflow:101  - Source Image: The base image where the clothing is to be swapped102  - Cloth Image: The image of the clothing to be applied103- Start the process to generate swapped outputs104- Save the generated images for further use105 106## Why is this Useful?107This project has a broad range of applications, making it useful across multiple industries and for personal use:108 109- **Virtual Try-On Technology:**110Revolutionize online shopping experiences by enabling customers to "try on" clothes digitally.111Reduce product returns by providing a realistic preview of clothing fit and style.112 113- **Fashion Design and Prototyping:**114Help designers test their creations on various models without the need for physical samples or photoshoots.115Quickly iterate designs and visualize the final product.116 117## Compute Infrastructure118 119## Hardware120 121NVIDIA GeForce RTX 3060 card122 123## Model Card Contact124 125For inquiries and contributions, please contact us at info@foduu.com.126 127```bibtex128@ModelCard{129  author    = {Nehul Agrawal and130               Priyal Mehta},131  title     = {StyleShift - Cloth Swap / Dress Swap / Style Change},132  year      = {2024}133}134```