fal-tryon
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesefal-tryon
fal-tryon
Virtual try-on — transfer garments onto person photos using fal.ai models.
虚拟试穿——使用fal.ai模型将服装迁移到人物照片上。
Scripts
脚本
| Script | Purpose |
|---|---|
| Apply a garment onto a person photo |
| 脚本 | 用途 |
|---|---|
| 将服装应用到人物照片上 |
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 topbash
./scripts/tryon.sh --person-url "https://example.com/person.jpg" --garment-url "https://example.com/jacket.jpg" --type topArguments
参数
| Argument | Description | Required |
|---|---|---|
| URL of person/model photo | Yes |
| URL of garment/clothing image | Yes |
| Garment type: top, bottom, full-body, dress | No (auto-detect) |
| Model endpoint | No (default: fal-ai/fashn/tryon/v1.5) |
| speed, balanced, quality | No (default: balanced) |
| 参数 | 说明 | 是否必填 |
|---|---|---|
| 人物/模特照片的URL | 是 |
| 服装/衣物图片的URL | 是 |
| 服装类型:top(上衣)、bottom(下装)、full-body(全身)、dress(连衣裙) | 否(自动检测) |
| 模型端点 | 否(默认值:fal-ai/fashn/tryon/v1.5) |
| 画质选项:speed(速度优先)、balanced(平衡)、quality(画质优先) | 否(默认值:balanced) |
Finding Models
查找模型
To discover the best and latest virtual try-on models, use the search API:
bash
undefined要发掘最佳及最新的虚拟试穿模型,可使用搜索API:
bash
undefinedSearch 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
- 人物照片需清晰展示全身或上半身
- 服装图片最好是纯色/白色背景(平铺或人体模型拍摄效果最佳)
- 建议先去除服装图片背景以获得最佳效果
- 明确指定服装类型(上衣/下装/连衣裙)可获得更精准的摆放效果