界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

idm-vton

idm-vton

【效率与协作】IDM VTON | Virtual Try-On. Try on clothes virtually by combining a garment image with a person photo. Triggers: virtual try on, vton, clothing try on, garment fitting, try on clothes

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: idm-vton description: "IDM VTON | Virtual Try-On. Try on clothes virtually by combining a garment image with a person photo. Triggers: virtual try on, vton, clothing try on, garment fitting, try on clothes" allowed-tools: Bash(curl *), WebFetch

IDM VTON

Virtual try-on that combines a garment image with a person photo. Upload a model photo and a garment image to see how clothes look on the person, supporting upper body, lower body, and dresses.

Quick Start

Requires an each::labs API key. Get one at eachlabs.ai.

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "idm-vton",
    "version": "0.0.1",
    "input": {
      "human_img": "https://example.com/model-photo.jpg",
      "garm_img": "https://example.com/tshirt.jpg",
      "garment_des": "Short Sleeve Round Neck T-shirt",
      "category": "upper_body",
      "steps": 30
    }
  }'

Parameters

ParameterTypeDefaultDescription
categorystringupper_bodyGarment category. enum: upper_body, lover_body, dresses
cropbooleantrueCrop the image if not 3:4 aspect ratio
force_dcbooleanfalseUse the DressCode version of IDM-VTON
garm_imgstring-Garment image (product image or photo of clothing)
garment_desstring-Description of garment, e.g., "Short Sleeve Round Neck T-shirt"
human_imgstring-Model/person photo (3:4 aspect ratio recommended)
mask_imgstring-Mask image, optional but speeds up processing
mask_onlybooleanfalseReturn only the mask
seedinteger42Random seed
stepsinteger30Number of generation steps

Examples

Try on a dress:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "idm-vton",
    "version": "0.0.1",
    "input": {
      "human_img": "https://example.com/model-standing.jpg",
      "garm_img": "https://example.com/summer-dress.jpg",
      "garment_des": "Floral print summer dress with v-neck",
      "category": "dresses",
      "crop": true,
      "steps": 30,
      "seed": 42
    }
  }'

Try on pants with mask:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "idm-vton",
    "version": "0.0.1",
    "input": {
      "human_img": "https://example.com/full-body-photo.jpg",
      "garm_img": "https://example.com/jeans.jpg",
      "garment_des": "Slim fit dark blue denim jeans",
      "category": "lover_body",
      "mask_img": "https://example.com/pants-mask.jpg",
      "steps": 30
    }
  }'

Related Models

Documentation

我的收藏