Skip to content

Commit 17808a0

Browse files
authored
Fix bug when converting checkpoint to diffusers format (huggingface#6900)
This fixes huggingface#6899.
1 parent 491a933 commit 17808a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,6 +1320,9 @@ def download_from_original_stable_diffusion_ckpt(
13201320
else:
13211321
with open(original_config_file, "r") as f:
13221322
original_config_file = f.read()
1323+
else:
1324+
with open(original_config_file, "r") as f:
1325+
original_config_file = f.read()
13231326

13241327
original_config = yaml.safe_load(original_config_file)
13251328

0 commit comments

Comments
 (0)