Skip to content

Commit

Permalink
Fix from_single_file for xl_inpaint (#9054)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gothos authored Aug 20, 2024
1 parent cf2c49b commit 214990e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/diffusers/loaders/single_file_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,8 @@ def infer_diffusers_model_type(checkpoint):
):
if CHECKPOINT_KEY_NAMES["v2"] in checkpoint and checkpoint[CHECKPOINT_KEY_NAMES["v2"]].shape[-1] == 1024:
model_type = "inpainting_v2"
elif CHECKPOINT_KEY_NAMES["xl_base"] in checkpoint:
model_type = "xl_inpaint"
else:
model_type = "inpainting"

Expand Down

0 comments on commit 214990e

Please sign in to comment.