Unverified Commit 58b8dce1 authored by spezialspezial's avatar spezialspezial Committed by GitHub
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
parent a65ca8a0
......@@ -1317,6 +1317,9 @@ def download_from_original_stable_diffusion_ckpt(
if config_url is not None:
original_config_file = BytesIO(requests.get(config_url).content)
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