e621-rising-v3 / INSTALL.md
hearmeneigh's picture
Create INSTALL.md
ccaa367
|
raw
history blame
1.22 kB

Installation

E621 Rising V3 is ready to use with Stable Diffusion WebUI, Python, and anything else that can load SDXL safetensors files.

Using with Stable Diffusion WebUI

Setting Up

  1. Install Stable Diffusion WebUI
  2. Download e621-rising-v3-epoch27.fp16.safetensors
  3. Copy/move the file to <stable-diffusion-webui>/models/Stable-diffusion
  4. Reload WebUI checkpoints
  5. (Recommended) Install Tag Autocomplete for WebUI

For more information, see here.

Using with Python

from diffusers import DiffusionPipeline
import torch

pipe = DiffusionPipeline.from_pretrained("hearmeneigh/e621-rising-v3", torch_dtype=torch.float16, use_safetensors=True, variant="fp16")
pipe.to("cuda")

# if using torch < 2.0
# pipe.enable_xformers_memory_efficient_attention()

prompt = "An astronaut riding a green horse"
images = pipe(prompt=prompt).images[0]