Expand Assistent to v0.3: Generate loop, Civitai Confirm, img2img/inpaint.

Server inventory and streaming chat, auto-apply/generate with Interrupt, Civitai search cards (Confirm-only download), plus Init/Mask wiring and inpaint_edit pack.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-21 13:29:26 +03:00
co-authored by Cursor
parent 06d5df9e93
commit 3380206c6a
11 changed files with 1701 additions and 156 deletions
+37
View File
@@ -0,0 +1,37 @@
# 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) |
| Fresh image from text | Clear init/mask; normal t2i |
## Creativity (denoise)
- **0.20.35** — small fixes, keep composition
- **0.40.55** — noticeable edit, still related
- **0.60.8** — strong restyle; structure may drift
- Always set `use_init_image: true` when enabling img2img from the Assistent vision / current image.
## Mask rules
- White = regenerate, black = preserve. Gray = partial.
- Only set `use_mask_image: true` if context shows a vision image that is meant as a mask, or the user said they prepared one.
- If `has_mask_image` is false and the user wants regional edit: ask them to paint a mask in Swarm Image Editor (or Assistent **As Mask**), then continue.
- Optional: `mask_blur` / `mask_grow` for softer edges.
## Prompting
- Describe **what should appear in the edited region**, not the whole scene dump.
- Keep LoRA triggers if the subject depends on them.
- Match width/height to the init image when possible.
## 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.