Skip to content

Compatibility issues regarding checkpoint/VAE dependency conflicts when Diffusers load Civitai LoRA #12884

@hhhFuture

Description

@hhhFuture

Hello everyone, I'm currently learning to use diffusers and would like to ask all my friends a question. I saw a good lora on Civitai, but this lora has requirements for checkpoint and vea. So I downloaded both models as the author requested. However, when I ran the following code, an error occurred.
The specific code is as follows:

pipeline = StableDiffusionPipeline.from_single_file(
    r"E:\Project_draw\Models\vae\clearvaeSD15_v23.safetensors",
    use_safetensors=True,
    torch_dtype=torch.float16,
    safety_checker=None
 )

The errors are as follows:

Image

I checked the documentation of diffusers. The documentation mentioned that it is possible to load the model in this way, but I don't know why an error occurred. I saw many convert scripts in the script folder of diffusers, but I don't know which one is the corresponding conversion script and what the requirements are. If there are any friends who know how to solve it, could you please tell me what it feels like

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