This 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.
Objective
The 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.
Clone and Setup ComfyUI Repository
Install ComfyUI by cloning its main repository:
git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
Install dependencies:
pip install -r requirements.txt
Install ComfyUI Manager:
go to ComfyUI/custom_nodes dir in terminal(cmd) and clone this repo:
Note: ComfyUI requires Python 3.9 or above. Ensure all required dependencies are installed.
Now Go to Manager ->-> Custom Nodes Manager and install this two nodes
ComfyUI Layer Style
and
ComfyUI_CatVTON_Wrapper
, restart and reload the page.
Place 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.
(If directory name not there in ComfyUI/models/ create new)
Click on
Load
button in menu bar and select the
workflow.json
file provided in this repository
Now click on
Queue Prompt
for generate output
or you can use by python script provided in this repository:
python3 main.py
#Remember change the input paths in script here :#prompt["2"]["inputs"]["image"] = "\\ put your input person pose image"#prompt["3"]["inputs"]["image"] = "\\ put your input cloth image"
Using Cloth Swap
Prepare your input images (ensure proper resolution for better results)
Select the uploaded workflow in ComfyUI
Provide necessary inputs as per the workflow:
Source Image: The base image where the clothing is to be swapped
Cloth Image: The image of the clothing to be applied
Start the process to generate swapped outputs
Save the generated images for further use
Why is this Useful?
This project has a broad range of applications, making it useful across multiple industries and for personal use:
Virtual Try-On Technology:
Revolutionize online shopping experiences by enabling customers to "try on" clothes digitally.
Reduce product returns by providing a realistic preview of clothing fit and style.
Fashion Design and Prototyping:
Help designers test their creations on various models without the need for physical samples or photoshoots.
Quickly iterate designs and visualize the final product.
Compute Infrastructure
Hardware
NVIDIA GeForce RTX 3060 card
Model Card Contact
For inquiries and contributions, please contact us at
[email protected]
.
@ModelCard{
author = {Nehul Agrawal and
Priyal Mehta},
title = {StyleShift - Cloth Swap / Dress Swap / Style Change},
year = {2024}
}
Runs of foduucom StyleShift-ClothSwap on huggingface.co
0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About StyleShift-ClothSwap huggingface.co Model
StyleShift-ClothSwap huggingface.co is an AI model on huggingface.co that provides StyleShift-ClothSwap's model effect (), which can be used instantly with this foduucom StyleShift-ClothSwap model. huggingface.co supports a free trial of the StyleShift-ClothSwap model, and also provides paid use of the StyleShift-ClothSwap. Support call StyleShift-ClothSwap model through api, including Node.js, Python, http.
StyleShift-ClothSwap huggingface.co is an online trial and call api platform, which integrates StyleShift-ClothSwap's modeling effects, including api services, and provides a free online trial of StyleShift-ClothSwap, you can try StyleShift-ClothSwap online for free by clicking the link below.
foduucom StyleShift-ClothSwap online free url in huggingface.co:
StyleShift-ClothSwap is an open source model from GitHub that offers a free installation service, and any user can find StyleShift-ClothSwap on GitHub to install. At the same time, huggingface.co provides the effect of StyleShift-ClothSwap install, users can directly use StyleShift-ClothSwap installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
StyleShift-ClothSwap install url in huggingface.co: