换模特换背景 One Shot
БесплатноЗапускает вложенные скриптыНе проверен已有模特图换模特、换背景。一张模特图 → 多人群多场景版本,商品本身不变。当用户说「换模特」「换背景」「换人种」「一图多版」「同一件衣服换个人」时使用。
от dlazyai2 490 установок в других каталогахОб этом скилле
one-shot — 同一商品替换模特和背景
拿一张已经拍好的模特图或人台图,在商品完全不动的前提下换掉人、换掉背景,或两者都换。
和 flat-lay 的区别:flat-lay 从平铺图造一张模特图;本技能是把已有的模特图裂变成多个人群 / 场景版本——一次拍摄,覆盖国内海外、不同年龄段、不同肤色的投放需求。
生成效果示例
| 输入:原模特图 |
|---|
![]() |
source-model.jpg — 男青年身穿灰色落肩短袖,浅灰棚拍背景,768×1024 |
实际执行的命令(换模特换背景):
dlazy gpt-image-2 \
--prompt 'Replace the model and the background of this e-commerce photo while keeping the garment untouched. Keep the grey oversized short-sleeve T-shirt exactly as it is: same slate-grey colour, same drop-shoulder cut, same white chest logo, same folds and hem. Replace the person with a different male model of similar build and age, and replace the plain studio wall with a sunlit outdoor city street with soft bokeh. Keep the same pose, camera angle, crop and framing. Photorealistic catalog shot, natural light, no text, no watermark.' \
--images docs/one-shot/source-model.jpg \
--size 1024x1536 --quality medium --imageFormat jpeg \
--save docs/one-shot/example-output.jpg
输出

example-output.jpg — 1024×1536。灰色落肩短袖的颜色、版型、胸前 logo 与下摆弧线保持不变;模特换成另一位男青年,棚拍灰墙换成树影斑驳的街景,姿势与景别沿用原图。
1、能力边界
| 模式 | 说明 |
|---|---|
| 换模特换背景 | 人和场景全换,只留商品 |
| 只换背景 | 保留原模特(脸、身材、姿势),换掉环境 |
| 只换模特 | 保留原场景与构图,换掉人 |
| 附加能力 | 说明 |
|---|---|
| 指定模特 | 性别 / 年龄 / 肤色 / 身材,锁定同一张脸做多 SKU |
| 参考图 | 决定新的姿势与场景,支持套图 |
| 参考图相似度 | 50% 相似(借风格,保留原构图)/ 100% 相似(严格照抄参考图) |
| 智能匹配模特位置 | 自动对齐新模特与原商品的身体位置,避免衣服错位 |
| 自动修手 | 生成后自动修正手部结构 |
| 人台图转真人 | 输入人形模特(假人)图,输出真人上身图 |
不做:不改商品的款式、颜色、图案与版型;不做换脸到特定真人;不用于伪造他人肖像代言。
2、输入素材规则
生成前先自检这几条硬性约束:
- 大小:20KB ~ 15MB
- 分辨率:大于 400×400
- 格式:jpg / jpeg / png / webp
输入类型:模特图 或 人台图(衣服已经穿在真人 / 假人身上的图)。
输入建议
| 做法 | 说明 |
|---|---|
| ✅ 商品完整无遮挡 | 手臂、包袋压住衣服的地方换人后容易崩 |
| ✅ 商品在画面中占比够大 | 太小的商品换人时细节会被重绘丢失 |
| ✅ 光线均匀 | 强逆光、大面积阴影会让新模特的光影对不上 |
| ❌ 多人同框 | 模型分不清该换哪个人 |
| ❌ 商品被裁切 | 出画的部分只能靠猜,容易长出错误结构 |
3、三种模式怎么选
| 你的目标 | 选模式 | prompt 要写死的不变量 |
|---|---|---|
| 同款衣服卖给欧美市场 | 换模特换背景 | 商品(款式/颜色/图案/版型/褶皱) |
| 同一套图换季节氛围 | 只换背景 | 商品 + 模特(脸/发型/身材/姿势) |
| 人台图转真人图 | 只换模特 | 商品 + 场景 + 构图 + 光线 |
| 一张图裂变成多年龄段版本 | 只换模特 | 商品 + 场景 + 姿势 + 景别 |
「参考图相似度」的等价写法
| 档位 | 写进 prompt |
|---|---|
| 50% 相似 | Borrow the mood, colour grading and lighting style from image 2, but keep the original pose, camera angle and crop from image 1. |
| 100% 相似 | Reproduce image 2 exactly for pose, camera angle, crop, background and lighting. |
「自动修手」的等价写法:Hands must be anatomically correct — five distinct fingers per hand, natural knuckles, no fused or extra digits.
「智能匹配模特位置」的等价写法:Align the new body to the original garment: shoulder line, chest width, waist and hem must land on the same pixels as in image 1, so the garment does not shift or stretch.
4、工具调用
本技能使用 dLazy 的 gpt-image-2(图像编辑模型;本技能的本质是「保商品、换其余」的定向替换,需要强区域保持与指令跟随)。
调用方式
两种等价写法,选一种。统一入口会自动选后端、失败重试、建目录落盘、估算成本:
# A. 统一入口(推荐):可切任意后端,加 --dry-run 不计费空跑
node scripts/gen.mjs --task one-shot \
--prompt '<见下方 Prompt 模板>' \
--images <按下表顺序> \
--save output/one-shot-<sku>.jpg
# B. 直接用 dLazy CLI(不想引入 Node 依赖时,效果等价)
dlazy gpt-image-2 --prompt '...' --images ... --save output/one-shot.jpg
参数约定(本技能固定用法)
| 参数 | 取值 | 理由 |
|---|---|---|
--images |
[原模特图];带参考图时 [原模特图, 参考图];固定模特时再追加 模特脸图 |
顺序即 prompt 中的 image 1 / 2 / 3 |
--size |
与原图比例一致(竖版 1024x1536,方图 1024x1024) |
换人不该改变构图比例 |
--quality |
medium 常规;high 保面料纹理 |
只换人时纹理容易被抹平 |
--imageFormat |
jpeg |
电商上架通用格式 |
--batch |
3 ~ 4 |
换人随机性大,尤其手部 |
--save |
docs/one-shot/output-<市场>-<sku>.jpg |
按投放市场归档 |
Command Examples
# basic call: 换模特换背景
dlazy gpt-image-2 \
--prompt 'Replace the model and the background while keeping the garment untouched. Keep the garment exactly as it is: same colour, cut, logo, folds and hem. Replace the person with a different model of similar build, and replace the background with a sunlit outdoor city street with soft bokeh. Keep the same pose, camera angle, crop and framing.' \
--images docs/one-shot/source-model.jpg \
--size 1024x1536 --quality medium
# complex call: 只换模特 + 严格照抄参考姿势 + 固定模特脸 + 修手 + 出 4 张
dlazy gpt-image-2 \
--prompt 'Replace only the model. Image 1 is the source photo, image 2 is the pose/scene reference, image 3 is the target model face. Keep the garment 100% identical to image 1 — same colour, knit texture, print placement, silhouette and hem. Reproduce image 2 exactly for pose, camera angle, crop, background and lighting. Use the face and body type from image 3. Align the new body to the original garment: shoulder line, chest width, waist and hem must land on the same pixels as in
Установить 换模特换背景 One Shot в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл 换模特换背景 One Shot?
已有模特图换模特、换背景。一张模特图 → 多人群多场景版本,商品本身不变。当用户说「换模特」「换背景」「换人种」「一图多版」「同一件衣服换个人」时使用。
Как установить скилл 换模特换背景 One Shot?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл 换模特换背景 One Shot запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic