1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

Fix bug when converting checkpoint to diffusers format (#6900)

This fixes #6899.
This commit is contained in:
Ehsan Akhgari
2024-02-08 08:22:11 -05:00
committed by GitHub
parent 491a933a1b
commit 17808a091e

View File

@@ -1320,6 +1320,9 @@ def download_from_original_stable_diffusion_ckpt(
else:
with open(original_config_file, "r") as f:
original_config_file = f.read()
else:
with open(original_config_file, "r") as f:
original_config_file = f.read()
original_config = yaml.safe_load(original_config_file)