You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function signature for download_from_original_stable_diffusion_ckpt shows that it accepts the argument checkpoint_path_or_dict, as shown in the function definition:
The script file works correctly with these changes.
Reproduction
download script (on the date 9FEB2025): wget https://raw.githubusercontent.com/huggingface/diffusers/v0.20.0/scripts/convert_original_stable_diffusion_to_diffusers.py
run script on safetensor file: python convert_original_stable_diffusion_to_diffusers.py --checkpoint_path model.safetensors --dump_path ~/ --from_safetensors
result:
Traceback (most recent call last):
File "/home/user/path/to/script/convert_original_stable_diffusion_to_diffusers.py", line 154, in <module>
pipe = download_from_original_stable_diffusion_ckpt(
checkpoint_path=args.checkpoint_path,
...<15 lines>...
pipeline_class=pipeline_class,
)
TypeError: download_from_original_stable_diffusion_ckpt() got an unexpected keyword argument 'checkpoint_path'
Describe the bug
The function signature for download_from_original_stable_diffusion_ckpt shows that it accepts the argument checkpoint_path_or_dict, as shown in the function definition:
,The variable, checkpoint_path, assigned to by args.checkpoint_path in the function call:
Should be changed to:
The script file works correctly with these changes.
Reproduction
wget https://raw.githubusercontent.com/huggingface/diffusers/v0.20.0/scripts/convert_original_stable_diffusion_to_diffusers.py
python convert_original_stable_diffusion_to_diffusers.py --checkpoint_path model.safetensors --dump_path ~/ --from_safetensors
result:
Logs
System Info
Who can help?
No response
The text was updated successfully, but these errors were encountered: