@optima-chat/optima-agent 0.8.35 → 0.8.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: comfy
|
|
3
|
-
description: "
|
|
3
|
+
description: "生成和编辑图片/视频/语音/虚拟试穿。使用场景:生成图片(generate images/生成图片/画图)、编辑图片(edit images/编辑图片/图生图/风格转换)、生成视频(create videos/图生视频)、文本转语音(TTS/语音合成/朗读)、语音识别(ASR/语音转文字/转录)、虚拟试穿(virtual try-on/试穿/换装/试衣)。"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# 图像视频生成工具
|
|
@@ -202,7 +202,55 @@ Read /home/aiuser/project/result.mp4
|
|
|
202
202
|
|
|
203
203
|
- 输入图片:360-2000px,≤10MB,推荐 1080P 比例
|
|
204
204
|
- 输出规格:30fps,MP4 (H.264)
|
|
205
|
-
-
|
|
205
|
+
- 可用 `-o` 指定输出路径,默认保存到 `./comfy-output/`
|
|
206
|
+
|
|
207
|
+
## 虚拟试穿 (Virtual Try-On)
|
|
208
|
+
|
|
209
|
+
使用 FASHN AI tryon-v1.6 将服装穿到人物照片上。
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
comfy tryon <人物照片> <服装照片> [options]
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### 参数
|
|
216
|
+
|
|
217
|
+
| 参数 | 说明 | 默认值 |
|
|
218
|
+
|------|------|--------|
|
|
219
|
+
| `-o, --output <path>` | 输出文件路径 | `./comfy-output/tryon_{timestamp}.png` |
|
|
220
|
+
| `-c, --category <type>` | 服装类别:auto \| tops \| bottoms \| one-pieces | auto |
|
|
221
|
+
| `-m, --mode <mode>` | 生成模式:performance \| balanced \| quality | quality |
|
|
222
|
+
| `--garment-type <type>` | 服装照片类型:auto \| flat-lay \| model | auto |
|
|
223
|
+
| `-n, --num-samples <n>` | 生成数量 (1-4) | 1 |
|
|
224
|
+
| `--format <fmt>` | 输出格式:png \| jpeg | png |
|
|
225
|
+
| `--seed <n>` | 随机种子(可复现) | - |
|
|
226
|
+
|
|
227
|
+
### 示例
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
# 基本用法 - 本地图片试穿
|
|
231
|
+
comfy tryon person.jpg garment.jpg -o /home/aiuser/project/result.png
|
|
232
|
+
Read /home/aiuser/project/result.png
|
|
233
|
+
|
|
234
|
+
# 使用 URL 图片
|
|
235
|
+
comfy tryon https://example.com/model.jpg https://example.com/dress.jpg -o /home/aiuser/project/result.png
|
|
236
|
+
|
|
237
|
+
# 指定服装类别和快速模式
|
|
238
|
+
comfy tryon person.jpg top.jpg -c tops -m performance -o /home/aiuser/project/result.png
|
|
239
|
+
|
|
240
|
+
# 生成多张结果
|
|
241
|
+
comfy tryon person.jpg dress.jpg -n 4 -c one-pieces -o /home/aiuser/project/result.png
|
|
242
|
+
|
|
243
|
+
# 使用种子复现结果
|
|
244
|
+
comfy tryon person.jpg garment.jpg --seed 42 -o /home/aiuser/project/result.png
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
### 注意事项
|
|
248
|
+
|
|
249
|
+
- 支持本地图片路径和 URL
|
|
250
|
+
- 服装类别:auto (自动检测), tops (上装), bottoms (下装), one-pieces (连体)
|
|
251
|
+
- 三种模式价格相同(1 credit/张),quality 效果最好
|
|
252
|
+
- 推荐图片高度不超过 2000px,比例 2:3,JPEG 95% 质量
|
|
253
|
+
- 可用 `-o` 指定输出路径,默认保存到 `./comfy-output/`
|
|
206
254
|
|
|
207
255
|
## 语音合成 (TTS)
|
|
208
256
|
|
|
@@ -243,7 +291,7 @@ comfy tts "测试语音" --play -o /home/aiuser/project/test.wav
|
|
|
243
291
|
|
|
244
292
|
- 输出格式为 WAV
|
|
245
293
|
- 支持中、英、日、韩、法、德等 10 种语言(自动检测)
|
|
246
|
-
-
|
|
294
|
+
- 可用 `-o` 指定输出路径,默认保存到 `./comfy-output/`
|
|
247
295
|
|
|
248
296
|
## 语音识别 (ASR)
|
|
249
297
|
|