We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daf9d0f commit 982aa59Copy full SHA for 982aa59
src/diffusers/loaders/single_file_utils.py
@@ -604,10 +604,16 @@ def infer_diffusers_model_type(checkpoint):
604
if any(
605
g in checkpoint for g in ["guidance_in.in_layer.bias", "model.diffusion_model.guidance_in.in_layer.bias"]
606
):
607
- if checkpoint["img_in.weight"].shape[1] == 384:
+
608
+ if "model.diffusion_model.img_in.weight" in checkpoint:
609
+ key = "model.diffusion_model.img_in.weight"
610
+ else:
611
+ key = "img_in.weight"
612
613
+ if checkpoint[key].shape[1] == 384:
614
model_type = "flux-fill"
615
- elif checkpoint["img_in.weight"].shape[1] == 128:
616
+ elif checkpoint[key].shape[1] == 128:
617
model_type = "flux-depth"
618
else:
619
model_type = "flux-dev"
0 commit comments