Skip to content

How to use safetensors file for image generation? #3139

@DevJunghun

Description

@DevJunghun

Hi, Thanks for sharing this library for using stable diffusion.
There is one questions I want to ask.

I want to use safetensors file. (like civitai checkpoint, LoRA..)
do you share doc about using safetensors file?

  1. how to convert safetensors file? (like this)
  2. I think for using LoRA, I can use convert_lora_safetensor_to_diffusers.py, is this right?
  3. If my thought is right, Can i use this model like below code? (dump_path = test)
pipe = StableDiffusionPipeline.from_pretrained(test, torch_dtype=torch.float16)

I'll be waiting for your good opinions. Thank you.

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