Views
No views yet
1# Example code to use this model
2from diffusers import StableDiffusionPipeline
3from safetensors.torch import load_file
4import torch
5
6# Load the base model
7pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", torch_dtype=torch.float16).to("cuda")
8
9# Load the ESD parameters
10esd_params = load_file("path/to/downloaded/model.safetensors")
11
12# Apply ESD parameters to model
13# (implementation depends on your ESD setup)