runchat/lora-dd21fba4-f440-4e58-a464-91014a2ff824-1cics3
017
SDXL LoRA: sks
This is a LoRA (Low-Rank Adaptation) model for Stable Diffusion XL fine-tuned on images with the trigger word sks.
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
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-dd21fba4-f440-4e58-a464-91014a2ff824-1cics3", weight_name="pytorch_lora_weights.safetensors")
pipe = pipe.to("cuda")
# Generate image
prompt = "a photo of sks 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 sks 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: 16
- Trigger word:
sks
