feat: add bulk reidentify action for models (#8951)#8952
Open
Pfannkuchensack wants to merge 6 commits intoinvoke-ai:mainfrom
Open
feat: add bulk reidentify action for models (#8951)#8952Pfannkuchensack wants to merge 6 commits intoinvoke-ai:mainfrom
Pfannkuchensack wants to merge 6 commits intoinvoke-ai:mainfrom
Conversation
Add a "Reidentify Models" bulk action to the model manager, allowing users to re-probe multiple models at once instead of one by one. - Backend: POST /api/v2/models/i/bulk_reidentify endpoint with partial failure handling (returns succeeded/failed lists) - Frontend: bulk reidentify mutation, confirmation modal with warning about custom settings reset, toast notifications for all outcomes - i18n: new translation keys for bulk reidentify UI strings
lstein
requested changes
Mar 28, 2026
Collaborator
lstein
left a comment
There was a problem hiding this comment.
I ran into unexpeted behavior with the bulk reidentification function. There are a number of ControlNet models, including the starter QRCode Monster (SDXL) model, which successfully reidentify when they are individually selected and the "Reidentify" button is pushed, but when they are checked and the bulk Reidentify menu item is selected the reidentification fails with 'ControlNet_Diffusers_SDXL_Config' object has no attribute 'trigger_phrases'
Please see the screenshot below. The log shows a couple of unsuccessful bulk reidentification attempts, followed by an apparently successful individual reidentification. Any idea of what causes this behavior?
The bulk reidentify endpoint was directly assigning trigger_phrases without checking if the config type supports it, causing an AttributeError for ControlNet models. Added the same hasattr guard used by the individual reidentify endpoint. Also restored the missing path preservation that the individual endpoint has.
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
Add a "Reidentify Models" bulk action to the model manager, allowing users to re-probe multiple models at once instead of one by one.
POST /api/v2/models/i/bulk_reidentifyendpoint with partial failure handling (returns succeeded/failed lists)Related Issues / Discussions
Closes #8951
QA Instructions
Merge Plan
No special considerations needed.
Checklist
What's Newcopy (if doing a release after this PR)