ComfyUI Extension: Comfyui-SAL-VTON

Authored by ratulrafsan

Created

Updated

80 stars

Dressup your models! This is my quick implementation of the SAL-VTON node for ComfyUI. Based on the paper a/Keyu Y. Tingwei G. et al. (2023). Linking Garment with Person via Semantically Associated Landmakrs for Virtual Try-On

README

Comfyui-SAL-VTON : Dressup your models!

This is my quick implementation of the SAL-VTON node for ComfyUI.

Based on the paper Keyu Y. Tingwei G. et al. (2023). Linking Garment with Person via Semantically Associated Landmakrs for Virtual Try-On

Installation

  1. Clone this repository into the custom_nodes folder.
  2. Navigate to the cloned folder and run pip install -r requirements.txt. Be sure you're in the ComfyUI venv!
  3. Download these landmark, warp, and salvton models.
  4. Create a folder, named salvton, in the ComfyUI models directory and copy all three downloaded models into it.
  5. Profit?

Things to be aware of

  1. The garment should be 768x1024. If you don't have an image of the exact size, just resize it in ComfyUI.
  2. The results are poor if the background of the person image is not white. Consider using rembg or SAM to mask it and replace it with a white background.
  3. The garment mask is just the shape of the input garment. You can generate it with SAM or use rembg like I did in the workflow.

workflow.png

Acknowledgement

Keyu Y. Tingwei G. et al. (2023). Linking Garment with Person via Semantically Associated Landmakrs for Virtual Try-On

This is a simple wrapper around the inference code available on ModelScope. Thanks to the original authors for their work.