We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bee4d3 commit 8e14535Copy full SHA for 8e14535
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py
@@ -1843,6 +1843,8 @@ def download_controlnet_from_original_ckpt(
1843
while "state_dict" in checkpoint:
1844
checkpoint = checkpoint["state_dict"]
1845
1846
+ with open(original_config_file, "r") as f:
1847
+ original_config_file = f.read()
1848
original_config = yaml.safe_load(original_config_file)
1849
1850
if num_in_channels is not None:
0 commit comments