CoolFace
Modelpublic

runchat/lora-15bf00d1-d76a-4f97-ad77-5aa4b127c7a0-stack1

sourceHugging Faceopenrail++updated 1y agoView on Hugging Face
0likes6downloads
Model Card

SDXL LoRA: stack1

This is a LoRA (Low-Rank Adaptation) model for Stable Diffusion XL fine-tuned on images with the trigger word stack1.

Files

  • —pytorch_lora_weights.safetensors: Diffusers format (use with diffusers library)
  • —pytorch_lora_weights_webui.safetensors: Kohya format (use with AUTOMATIC1111, ComfyUI, etc.)

Usage

Diffusers Library

python
from diffusers import StableDiffusionXLPipeline
import torch

# Load base model
pipe = StableDiffusionXLPipeline.from_pretrained(
    "stabilityai/stable-diffusion-xl-base-1.0",
    torch_dtype=torch.float16
)

# Load LoRA weights (diffusers format)
pipe.load_lora_weights("runchat/lora-15bf00d1-d76a-4f97-ad77-5aa4b127c7a0-stack1", weight_name="pytorch_lora_weights.safetensors")
pipe = pipe.to("cuda")

# Generate image
prompt = "a photo of stack1 style"
image = pipe(prompt, num_inference_steps=25, guidance_scale=7.5).images[0]
image.save("output.png")

WebUI (AUTOMATIC1111, ComfyUI, etc.)

Download the pytorch_lora_weights_webui.safetensors file and place it in your WebUI's LoRA directory. Use the trigger word stack1 in your prompts.

Training Details

  • —Base model: stabilityai/stable-diffusion-xl-base-1.0
  • —Training steps: 1000
  • —Learning rate: 0.0001
  • —Batch size: 1
  • —LoRA rank: 32
  • —Trigger word: stack1