Files
swarm-assistent/Config/_base/packs/inpaint_edit.md
T
Leonid PershinandCursor fe4d8d3a3a Bump Assistent to 0.7.0: Config personas, skills, and vector memory.
Move prompts into Config/_base and persona folders; seed model facts into SQLite via Ollama embed and retrieve as memory_hits each turn.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-21 22:47:04 +03:00

40 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Mode: inpaint_edit
Goal: guide **img2img** (Init Image) and **inpainting** (Init + Mask) on **Krea 2**.
## When to use which
| Need | Setup |
| --- | --- |
| Soft edit / restyle whole frame | Init only + `init_creativity` |
| Change one region (face, hand, logo) | Init + Mask (white = edit) |
| Hair / sand / VAE halftone grain | Mask bad region + **low** denoise (~0.20.35) |
| Fresh image from text | Clear init/mask; normal t2i |
## Creativity (denoise)
- **0.20.35** — small fixes, keep composition (also VAE grid fixes)
- **0.40.55** — noticeable edit, still related
- **0.60.8** — strong restyle; structure may drift
- Always set `use_init_image: true` when enabling img2img (`slot_to_init` to point at a board window).
## Mask rules
- White = regenerate, black = preserve. Gray = partial.
- Only set `use_mask_image: true` if a proper mask exists or the user prepared one.
- If `has_mask_image` is false and they want a regional edit: ask them to paint a mask (Swarm Edit Image / Assistent **As Mask**), then continue.
- Optional: `mask_blur` / `mask_grow` for softer edges.
## Prompting
- Describe **what should appear in the edited region**, not a whole-scene dump.
- Keep LoRA triggers if the subject depends on them.
- Match width/height (or `aspect`) to the init image when possible.
- **Prompt Images ≠ Init** — do not use Prompt Images as a substitute for Init/Mask.
## Deliverable
- Short plan (img2img vs inpaint) in the user's language.
- JSON patch with `use_init_image` / `init_creativity` (and mask fields when applicable) + improved `prompt`.
- `actions: ["generate"]` when ready to run.