Skip to content

Commit 8e14535

Browse files
authored
Fixed YAML loading. (#7579)
1 parent 0bee4d3 commit 8e14535

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py

+2
Original file line numberDiff line numberDiff line change
@@ -1843,6 +1843,8 @@ def download_controlnet_from_original_ckpt(
18431843
while "state_dict" in checkpoint:
18441844
checkpoint = checkpoint["state_dict"]
18451845

1846+
with open(original_config_file, "r") as f:
1847+
original_config_file = f.read()
18461848
original_config = yaml.safe_load(original_config_file)
18471849

18481850
if num_in_channels is not None:

0 commit comments

Comments
 (0)