Skip to content

Commit f4b7fcc

Browse files
committed
create_z_image_controlnet_config unknown type
1 parent efadd91 commit f4b7fcc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/diffusers/loaders/single_file_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3923,3 +3923,5 @@ def create_z_image_controlnet_config(checkpoint, **kwargs):
39233923
return v1_config
39243924
elif control_x_embedder_weight_shape == 132:
39253925
return v2_config
3926+
else:
3927+
raise ValueError("Unknown Z-Image Turbo ControlNet type.")

0 commit comments

Comments
 (0)