Skip to content

Commit

Permalink
Update invokeai/backend/model_manager/probe.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Dick <[email protected]>
  • Loading branch information
brandonrising and RyanJDick authored Sep 3, 2024
1 parent f4abfd2 commit 9e55b7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions invokeai/backend/model_manager/probe.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,10 @@ def get_model_type_from_checkpoint(cls, model_path: Path, checkpoint: Optional[C
"cond_stage_model.",
"first_stage_model.",
"model.diffusion_model.",
# FLUX models in the official BFL format contain keys with the "double_blocks." prefix.
"double_blocks.",
# Some FLUX checkpoint files contain transformer keys prefixed with "model.diffusion_model".
# This prefix is typically used to distinguish between multiple models bundled in a single file.
"model.diffusion_model.double_blocks.",
)
):
Expand Down

0 comments on commit 9e55b7f

Please sign in to comment.