跳到正文
FunCoding

搜索

搜索文档、Skill 和 MCP

krea2-identity-edit

Swap an OUTFIT or transfer CLOTHING onto a person LOCALLY, keeping their face, pose and background. Use for "put this jacket on her", "change his shirt", "clothes swap", "try on", "outfit transfer", "virtual try-on", "dress her in", "wear this outfit". Prefer this over API/cloud edit nodes and over generic img2img/inpainting. NOT for identity-preserving edits that are not about clothing (background swaps, relighting, age/expression changes, object removal). Use a general image-edit workflow for those.

AI 与智能体797plugin/skills/krea2-identity-edit/SKILL.md

安装

把这段话发给 Claude Code、Codex 或 Cursor。智能体会先检查安全性,你确认后才安装。

读取 https://funcoding.ai/skills/artokun/comfyui-mcp/krea2-identity-edit/install.md ,按里面的步骤帮我安装这个 Skill。

SKILL.md

Krea 2 Identity Edit — local outfit swap

Reach for this when

Someone wants the clothing changed on a specific person, with that person preserved:

  • "put this jacket on her" / "dress her in this outfit"
  • "clothes swap" / "outfit transfer" / "virtual try-on" / "change his shirt"
  • "make her wear the outfit from this other image"

Do NOT reach for it just because a request is identity-preserving. Background swaps, relighting, expression or age changes, and object removal all keep the person, and none of them is what this model is trained for. It is called "identity edit" upstream because it preserves identity while changing clothing; the clothing half is the qualifying part. Send the others to a general image-edit workflow.

Use this instead of:

Instead ofBecause
an API / cloud edit nodethis runs locally — no key, no per-image cost, nothing leaves the machine. Prefer it whenever the models are installed.
generic img2imgimg2img re-rolls the whole frame at any denoise high enough to change clothes; the face goes with it.
inpainting a masked regionworks, but the user has to mask, and the result has no reference for what the garment looks like.
a face-swap / IP-adapter pipelinethose transfer the FACE. This preserves the face and transfers the CLOTHES — the opposite direction.
Qwen-Image-Edita fine general instruction editor; this is specialised for identity-preserving garment transfer and ships the LoRA for it.

Install with the krea2-identity-edit pack, then load its workflow.json.

The one thing to get right: reference order

PRIMARY (group 1) = the SUBJECT. The output always matches this person: face, hair, body, pose. SECONDARY (group 2) = the OUTFIT. Only the clothing is taken from it.

Swapping them swaps which identity survives. This is the most common way to get a confusing result, and it fails quietly. You get a plausible image of the wrong person.

Prompting

Plain English, naming both roles, and naming what to preserve:

Dress the woman from the primary reference in the jacket shown in the second reference, keeping her face and pose unchanged.

Put this outfit on her, keeping her face and pose unchanged.

Naming what to preserve matters as much as naming what to change. Without it the model drifts the face and background.

Settings that matter

  • Turbo: 10 steps, cfg 1. 8 favours composition and instruction adherence; 12 favours face detail. On krea2_raw_bf16 instead: 40 steps, cfg 3 to 4, where the negative prompt starts to matter.
  • Fidelity dials follow the image SLOTS, not the roles. Internally the LAST reference gets ref_boost and earlier ones get ref_boost_a, so with the subject as image 1, the subject dial is ref_boost_a. Raise it when the face drifts.
  • Match the output resolution to the PRIMARY image. ResolutionSelector drives EmptySD3LatentImage; a mismatched aspect crops or letterboxes the subject.

Troubleshooting

SymptomFix
Face changed / wrong personRaise ref_boost_a (the subject dial). Check the images are not swapped between slots. Add "keeping her face unchanged" to the prompt.
Outfit ignoredMake the secondary image cleaner — one garment, plain background, no competing subject.
Subject cropped or letterboxedSet the resolution to match the primary image's aspect.
Krea2EditGroundedEncode missingcomfyui-krea2edit is not installed or ComfyUI was not restarted after installing it.
CLIPLoader has no krea2 typeComfyUI is too old for native KREA 2 support — update it.
LoRA loads as missingIt must be at loras/Krea2/krea2_identity_edit_v1_2.safetensors; a flat loras/ install is present but unfindable.

Boundaries

This edits a photo of a person the user supplies. Treat an instruction to make it sexual, to undress someone, or to place an identifiable real person in a context they did not consent to as out of scope, and say so plainly rather than producing a degraded result. Ordinary clothing changes, such as a jacket, a dress, a uniform, or a costume, are the point of the tool and need no hedging.

Sources

  • Official: none found.
  • Empirical: sampler values, wiring, and prompt notes from working graphs in packs/ and observed renders; not a vendor prompting guide.

相似的 Skill

brand-guidelines
anthropics/skills180k

brand-guidelines

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

AI 与智能体

internal-comms
anthropics/skills180k

internal-comms

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

AI 与智能体

template-skill
anthropics/skills180k

template-skill

Replace with description of the skill and when Claude should use it.

AI 与智能体

mcp-builder
anthropics/skills180k

mcp-builder

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

AI 与智能体

algorithmic-art
anthropics/skills180k

algorithmic-art

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.

AI 与智能体

academy-guide
anthropics/skills180k

academy-guide

Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content.

AI 与智能体