fix(mm): Fix Anima model identification for ComfyUI checkpoint format#9113
Open
kappacommit wants to merge 1 commit intoinvoke-ai:mainfrom
Open
fix(mm): Fix Anima model identification for ComfyUI checkpoint format#9113kappacommit wants to merge 1 commit intoinvoke-ai:mainfrom
kappacommit wants to merge 1 commit intoinvoke-ai:mainfrom
Conversation
…entification Anima finetunes packaged in ComfyUI format use `model.diffusion_model.*` prefixed keys instead of bare or `net.*` prefixed keys. Update the probe and loader to recognize and handle this format. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Anima finetunes packaged in the ComfyUI bundled checkpoint format (e.g. from CivitAI) failed to install with "Could not identify model" errors. This adds support for the model.diffusion_model.* key prefix used by that format, matching how FLUX and Z-Image already handle it.
Related Issues / Discussions
Reported in discord: https://discord.com/channels/1020123559063990373/1149506274971631688/1499965910193274901
QA Instructions
Install this model (sfw): https://civitai.com/models/2537379/hotaru-blend-anima?modelVersionId=2907163 and it should correctly identify as Anima.
Perform generation with that model successfully
Install this second model (sfw): https://civitai.com/models/1465491/ramthrusts-nsfw-pink-alchemy-mix?modelVersionId=2871338 and it should correctly identify as Anima
Perform generation with that model successfully
Merge Plan
Checklist
What's Newcopy (if doing a release after this PR)