Skip to content

Commit

Permalink
quick fix to make sure sdxl conversion works
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickvonplaten committed Jul 11, 2023
1 parent 6894056 commit 5e80827
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 5e80827

Please sign in to comment.