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.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
fix(anima): correct RoPE configuration to match the reference model (#9189)
kappacommit9a1e284cb5c0
diff --git a/invokeai/backend/model_manager/load/model_loaders/anima.py b/invokeai/backend/model_manager/load/model_loaders/anima.pyindex 05da7c2603..d63393fb7b 100644--- a/invokeai/backend/model_manager/load/model_loaders/anima.py+++ b/invokeai/backend/model_manager/load/model_loaders/anima.py@@ -102,6 +102,14 @@ class AnimaCheckpointModel(ModelLoader):mlp_ratio=4.0,crossattn_emb_channels=1024,pos_emb_cls="rope3d",+ # Anima reuses the Cosmos-Predict2 2B Text2Image DiT, which trains with+ # rope_scale=(t=1.0, h=4.0, w=4.0). The NTK-scaled spatial RoPE base is+ # mandatory; omitting it (theta=10000 on all axes) shifts every step's+ # velocity ~7% off and compounds into degraded images. Matches diffusers+ # CosmosTransformer3DModel rope_scale via *_extrapolation_ratio.+ rope_h_extrapolation_ratio=4.0,+ rope_w_extrapolation_ratio=4.0,+ rope_t_extrapolation_ratio=1.0,use_adaln_lora=True,adaln_lora_dim=256,extra_per_block_abs_pos_emb=False,