Skip to content

I can't load safetensors model #3196

@Amazingldl

Description

@Amazingldl

The code is:

from diffusers import ControlNetModel
control1 = ControlNetModel.from_pretrained("./model/ControlNet/sd-controlnet-canny")
control2 = ControlNetModel.from_pretrained("./model/ControlNet/sd-controlnet-seg")

The models are local:
image
One is .bin model, the other is .safetensors.

I got this error:
OSError: Error no file named diffusion_pytorch_model.bin found in directory ./model/ControlNet/sd-controlnet-seg.
image

I can load bin model successfully but failed to load safetensors.

and my version of diffusers is 0.16.0.dev0

Any help is appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions