1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-29 07:22:12 +03:00

quick fix to make sure sdxl conversion works

This commit is contained in:
Patrick von Platen
2023-07-11 16:51:56 +00:00
parent fcb0da7f00
commit d0979f5274

View File

@@ -1256,7 +1256,8 @@ def download_from_original_stable_diffusion_ckpt(
elif num_in_channels is None:
num_in_channels = 4
original_config["model"]["params"]["unet_config"]["params"]["in_channels"] = num_in_channels
if "unet_config" in original_config.model.params:
original_config["model"]["params"]["unet_config"]["params"]["in_channels"] = num_in_channels
if (
"parameterization" in original_config["model"]["params"]