Skip to content

converting .safetensor model to diffusers #4974

@leebeet

Description

@leebeet

Describe the bug

using the convert_original_stable_diffusion_to_diffusers.py to convert safetensor model to diffusers. but the script always end with this error:

Traceback (most recent call last):
File "convert_original_stable_diffusion_to_diffusers.py", line 154, in
pipe = download_from_original_stable_diffusion_ckpt(
TypeError: download_from_original_stable_diffusion_ckpt() got an unexpected keyword argument 'checkpoint_path_or_dict'

Don't understand the resason, every thing is setup, the diffuser is installed.
Not sure if it's relative to the mac os version, my mac is runing the sonoma beta OS 14.0
and xcode 15 beta7.

Could you help with this~? thanx ahead

Reproduction

  1. using the convert_original_stable_diffusion_to_diffusers.py to convert safetensor model to diffusers.
  2. terminal already cd to the folder which the model in.
  3. "python convert_original_stable_diffusion_to_diffusers.py --checkpoint_path sample.safetensors --from_safetensors --device cpu --extract_ema --dump_path sample_diffusers"
  4. get the error:
    Traceback (most recent call last):
    File "convert_original_stable_diffusion_to_diffusers.py", line 154, in
    pipe = download_from_original_stable_diffusion_ckpt(
    TypeError: download_from_original_stable_diffusion_ckpt() got an unexpected keyword argument 'checkpoint_path_or_dict'

Logs

No response

System Info

python version: 3.8/3.11
diffuser version: 0.20
Mac OS: Sonoma beta OS 14.0
xcode 15 beta7.

Who can help?

@patrickvonplaten

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions