Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

Merge branch 'refactor/invocations-by-architecture' into feat/webv2-server-driven-model-policies

Alexander Eichhorn79a09b6cfda2
diff --cc invokeai/backend/architectures/defs/anima.py
index 202f31f1de,220f6f8940..c871a1bb58
--- a/invokeai/backend/architectures/defs/anima.py
+++ b/invokeai/backend/architectures/defs/anima.py
@@@ -24,26 -23,12 +24,28 @@@ register
negative_prompt=NegativePrompt(visible=True, usage="cfg-gated"),
dimension_grid=8,
guidance_label="CFG",
+ # anima_denoise.guidance_scale is ge=1.0; 1.0 is CFG off.
+ guidance_min=1.0,
scheduler_set="anima",
scheduler_applies_to_graph=True,
- # Positive conditioning only, for the same reason as Z-Image: the negative list is accepted
- # but its masks are dropped.
+ # Same shape as Z-Image: masked positive conditioning only.
supports_regional_guidance=True,
),
+ VaeFacet(
+ frozenset(
+ {
+ # The Wan 2.1 VAE, registered under whichever base it was installed for -- all
+ # three point at the same 194-tensor checkpoint.
+ #
+ # Not FLUX. `anima_l2i` takes a FluxAutoEncoder without raising, but that branch
+ # skips the Wan denormalisation and decodes a WAN21_16 latent in FLUX's basis:
+ # measured against the Anima VAE on real weights, 6.10 dB PSNR, 0.93 MAE, a
+ # magenta moire in place of the subject. Accepting it is a silent corruption, not
+ # a fallback. See `tests/backend/architectures/test_vae.py`.
+ VaeCompatibility(BaseModelType.Anima),
+ VaeCompatibility(BaseModelType.QwenImage),
+ VaeCompatibility(BaseModelType.Wan, latent_channels=16),
+ }
+ )
+ ),
)
diff --cc invokeai/backend/architectures/defs/ernie_image.py
index e4b925e97d,db58da7b22..0dfe7750d6
--- a/invokeai/backend/architectures/defs/ernie_image.py
+++ b/invokeai/backend/architectures/defs/ernie_image.py
@@@ -34,11 -34,11 +34,13 @@@ register
negative_prompt=NegativePrompt(visible=True, usage="cfg-gated"),
dimension_grid=16,
guidance_label="CFG",
+ # ernie_image_denoise.guidance_scale is ge=1.0; 1.0 is CFG off.
+ guidance_min=1.0,
scheduler_set="flow",
- # ernie_image_denoise takes the scheduler as an input, so the graph builder passes the
- # user's choice through rather than letting the node pick.
+ # `ernie_image_denoise` takes a `scheduler` field and builds the sampler from it
+ # (ERNIE_IMAGE_SCHEDULER_MAP), so the choice reaches the graph rather than being a
+ # UI affordance. Omitting this defaulted it to False, which would have hidden the
+ # dropdown and pinned every generation to the first entry.
scheduler_applies_to_graph=True,
),
)
diff --cc invokeai/backend/architectures/defs/wan.py
index 7da9ec9129,9a43cd6ba2..252d520ae7
--- a/invokeai/backend/architectures/defs/wan.py
+++ b/invokeai/backend/architectures/defs/wan.py
@@@ -48,19 -47,11 +48,22 @@@ register
# enforces the A14B number as a field constraint and the TI2V-5B one inside `invoke()`.
dimension_grid_by_variant={WanVariantType.TI2V_5B: 32},
guidance_label="Guidance",
+ # wan_denoise.guidance_scale is ge=1.0. Its optional low-noise counterpart is a separate
+ # field with its own ge=0.0 and its own control, not this slider.
+ guidance_min=1.0,
scheduler_set="flow",
),
+ VaeFacet(
+ frozenset(
+ {
+ # A14B uses the 16-channel Wan 2.1 VAE; TI2V-5B needs the 48-channel
+ # Wan2.2-VAE. Both are registered under `wan`, so the channel count is the
+ # only thing that tells them apart.
+ VaeCompatibility(BaseModelType.Wan, latent_channels=16),
+ VaeCompatibility(BaseModelType.Wan, latent_channels=48),
+ }
+ )
+ ),
# The one architecture whose LoRAs carry a different variant enum from its mains. They are not
# interchangeable: an A14B LoRA (inner_dim=5120) against a TI2V-5B main (3072) crashes in the
# layer patcher, which is why the LoRA enum exists separately at all.