Skip to content

Commit 58b8dce

Browse files
Update convert_from_ckpt.py / read checkpoint config yaml contents (#6633)
Update convert_from_ckpt.py / read config yaml contents Added missing reading of config yaml file contents
1 parent a65ca8a commit 58b8dce

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
@@ -1317,6 +1317,9 @@ def download_from_original_stable_diffusion_ckpt(
13171317

13181318
if config_url is not None:
13191319
original_config_file = BytesIO(requests.get(config_url).content)
1320+
else:
1321+
with open(original_config_file, "r") as f:
1322+
original_config_file = f.read()
13201323

13211324
original_config = yaml.safe_load(original_config_file)
13221325

0 commit comments

Comments
 (0)