批量图片换装

批量AI换装,支持文字描述目标服装或上传参考服装图,保留人物形象只替换衣物。

meitu batch image-outfit-swap

注意:批量处理功能自 meitu-cli 2.1.1 起开始支持,低版本请先升级后再使用。

使用示例

# 配置文件模式(必须使用配置文件)
meitu batch image-outfit-swap \
  --config ./batch.image-outfit-swap.yaml \
  --output-dir ./outfit \
  --json

配置文件示例

version: 1
defaults:
  outputDir: ./outfit
items:
  - input: ./images/person1.jpg
    prompt: 换成休闲牛仔裤和T恤
  - input: ./images/person2.jpg
    clothes: ./clothes/dress.jpg
    prompt: 换成图片中的连衣裙

参数说明

参数必需说明
--output-dir输出目录
--configYAML/JSON 配置文件路径(必须使用配置文件)
--concurrency类型:number;默认:3;并行执行数量
--max-retries类型:number;默认:0;失败重试次数
--skip-exist跳过已存在的输出文件
--dry-run仅预览计划,不执行
--no-progress禁用逐个任务的进度日志
--json以 JSON 格式输出结果
--json-output将结果写入指定 JSON 文件
--skill-name服务端归属的技能名称