Skip to content

refactor/feat: Override edit models params + support more edit models#1780

Merged
leejet merged 17 commits into
leejet:masterfrom
stduhpf:Krea2OstrisEdit
Jul 14, 2026
Merged

refactor/feat: Override edit models params + support more edit models#1780
leejet merged 17 commits into
leejet:masterfrom
stduhpf:Krea2OstrisEdit

Conversation

@stduhpf

@stduhpf stduhpf commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Related Issue / Discussion

cont: #1775

implements #1783 and #1787

Additional Information

The --ref-image-mode uses the same csv format as the --extra-xxx-args arguments.

Here are the supported fields:

Key Allowed Values Description
preset flux_kontext, flux2, qwen_layered, qwen, z_image_omni, krea2_ostris_edit, krea2_edit, cosmos_reference, default Sets a predefined group of parameters. If unset, the preset is chosen based on the model architectiure to match previous behavior.
use_vlm true, false Determines if references are passed to the Vision Language Model encoder (if applicable).
pass_to_dit true, false Determines if VAE-encoded references are passed to the DiT.
ref_index_mode fixed, increase, decrease Sets the behavior of the reference images RoPE index.
force_timestep_0 true, false Forces timestep = 0 for the reference image tokens during diffusion (Note: Only supported by Krea2 architecture).
resize_vae_refs true, false Enables/disables resizing of VAE references.
vae_refs_max_size [integer] Sets the maximum size for VAE references.
cond_refs_resize_mode longest_side, area, none Determines how condition references are resized.
cond_refs_max_size [integer] Sets the maximum size for condition references.
cond_refs_min_size [integer] Sets the minimum size for condition references.
cond_refs_size [integer] Shortcut: Sets both cond_refs_min_size and cond_refs_max_size to this same integer.

newly supported models

Base Model LoRa prompt input image output image
Krea2-Turbo https://huggingface.co/conradlocke/krea2-identity-edit "Remove the text" example output
anima-base-v1.0 https://civitai.com/models/2752978/extend-image-image-edit-anima-ed "extend image, " padded-2 image
anima-base-v1.0 https://civitai.com/models/2650553/anima-edit?modelVersionId=3089149 "Change the background to be outside with a few trees and grass, it's very vibrant. Make the character hold up a sign that says `"AnimaEditV2, Now in SD.CPP!`". The sign should be covering her chest and navel. Also, change her expression to be excited and remove the blush. Keep the clothing the exact same." padded-3 output - Copy (486)

Checklist

@MrDrMcCoy

Copy link
Copy Markdown

Would you be so kind as to include an update to the docs that covers all this?

@stduhpf stduhpf changed the title refactor: Override edit models params refactor/feat: Override edit models params + support more edit models Jul 13, 2026
@leejet leejet merged commit 74bce04 into leejet:master Jul 14, 2026
11 checks passed
@leejet

leejet commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Thank you for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants