"test/vscode:/vscode.git/clone" did not exist on "26f62dc5beab1ec9d36250c396726c4085ab36c2"
Unverified Commit 17808a09 authored by Ehsan Akhgari's avatar Ehsan Akhgari Committed by GitHub
Browse files

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

This fixes #6899.
parent 491a933a
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment