mirror of
https://github.com/invoke-ai/InvokeAI
synced 2026-03-01 20:49:10 +01:00
Merged Z-Image checkpoints (e.g. models with LoRAs baked in) may bundle text encoder weights (text_encoders.*) or other non-transformer keys alongside the transformer weights. These cause load_state_dict() to fail with strict=True. Instead of disabling strict mode, explicitly whitelist valid ZImageTransformer2DModel key prefixes and discard everything else. Also moves RAM allocation after filtering so it doesn't over-allocate for discarded keys. Co-authored-by: Jonathan <34005131+JPPhoto@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| flux | ||
| flux2 | ||
| image_util | ||
| ip_adapter | ||
| model_hash | ||
| model_manager | ||
| onnx | ||
| patches | ||
| quantization | ||
| rectified_flow | ||
| sig_lip | ||
| stable_diffusion | ||
| tiles | ||
| util | ||
| z_image | ||
| __init__.py | ||
| llava_onevision_pipeline.py | ||
| model_patcher.py | ||
| raw_model.py | ||
| spandrel_image_to_image_model.py | ||
| textual_inversion.py | ||