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 6894056 commit 5e80827Copy full SHA for 5e80827
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py
@@ -1256,7 +1256,8 @@ def download_from_original_stable_diffusion_ckpt(
1256
elif num_in_channels is None:
1257
num_in_channels = 4
1258
1259
- original_config["model"]["params"]["unet_config"]["params"]["in_channels"] = num_in_channels
+ if "unet_config" in original_config.model.params:
1260
+ original_config["model"]["params"]["unet_config"]["params"]["in_channels"] = num_in_channels
1261
1262
if (
1263
"parameterization" in original_config["model"]["params"]
0 commit comments