fal-tryon

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

fal-tryon

fal-tryon

Virtual try-on — transfer garments onto person photos using fal.ai models.
虚拟试穿——使用fal.ai模型将服装迁移到人物照片上。

Scripts

脚本

ScriptPurpose
tryon.sh
Apply a garment onto a person photo
脚本用途
tryon.sh
将服装应用到人物照片上

Usage

使用说明

Basic Try-On

基础试穿

bash
./scripts/tryon.sh --person-url "https://example.com/person.jpg" --garment-url "https://example.com/dress.jpg"
bash
./scripts/tryon.sh --person-url "https://example.com/person.jpg" --garment-url "https://example.com/dress.jpg"

With Garment Type

指定服装类型

bash
./scripts/tryon.sh --person-url "https://example.com/person.jpg" --garment-url "https://example.com/jacket.jpg" --type top
bash
./scripts/tryon.sh --person-url "https://example.com/person.jpg" --garment-url "https://example.com/jacket.jpg" --type top

Arguments

参数

ArgumentDescriptionRequired
--person-url
URL of person/model photoYes
--garment-url
URL of garment/clothing imageYes
--type
Garment type: top, bottom, full-body, dressNo (auto-detect)
--model
/
-m
Model endpointNo (default: fal-ai/fashn/tryon/v1.5)
--quality
speed, balanced, qualityNo (default: balanced)
参数说明是否必填
--person-url
人物/模特照片的URL
--garment-url
服装/衣物图片的URL
--type
服装类型:top(上衣)、bottom(下装)、full-body(全身)、dress(连衣裙)否(自动检测)
--model
/
-m
模型端点否(默认值:fal-ai/fashn/tryon/v1.5)
--quality
画质选项:speed(速度优先)、balanced(平衡)、quality(画质优先)否(默认值:balanced)

Finding Models

查找模型

To discover the best and latest virtual try-on models, use the search API:
bash
undefined
要发掘最佳及最新的虚拟试穿模型,可使用搜索API:
bash
undefined

Search for try-on models

搜索试穿模型

bash /mnt/skills/user/fal-generate/scripts/search-models.sh --query "try-on" bash /mnt/skills/user/fal-generate/scripts/search-models.sh --query "virtual tryon" bash /mnt/skills/user/fal-generate/scripts/search-models.sh --query "garment"

Or use the `search_models` MCP tool with keywords like "try-on", "tryon", "garment", "fashion".
bash /mnt/skills/user/fal-generate/scripts/search-models.sh --query "try-on" bash /mnt/skills/user/fal-generate/scripts/search-models.sh --query "virtual tryon" bash /mnt/skills/user/fal-generate/scripts/search-models.sh --query "garment"

或者使用`search_models` MCP工具,搭配"try-on"、"tryon"、"garment"、"fashion"这类关键词搜索。

Tips

提示

  • Person photo should show clear full or upper body
  • Garment image works best on plain/white background (flat-lay or mannequin)
  • Remove garment background first for best results
  • Specify garment type (top/bottom/dress) for more accurate placement
  • 人物照片需清晰展示全身或上半身
  • 服装图片最好是纯色/白色背景(平铺或人体模型拍摄效果最佳)
  • 建议先去除服装图片背景以获得最佳效果
  • 明确指定服装类型(上衣/下装/连衣裙)可获得更精准的摆放效果