Views
No views yet
AN1.pytorch_lora_weights.safetensors: Diffusers format (use with diffusers library)pytorch_lora_weights_webui.safetensors: Kohya format (use with AUTOMATIC1111, ComfyUI, etc.)1from diffusers import StableDiffusionXLPipeline
2import torch
3
4# Load base model
5pipe = StableDiffusionXLPipeline.from_pretrained(
6 "stabilityai/stable-diffusion-xl-base-1.0",
7 torch_dtype=torch.float16
8)
9
10# Load LoRA weights (diffusers format)
11pipe.load_lora_weights("runchat/lora-a9b70d3d-d2a4-4878-9a18-51d7b4be741f-r3yf6i", weight_name="pytorch_lora_weights.safetensors")
12pipe = pipe.to("cuda")
13
14# Generate image
15prompt = "a photo of AN1 style"
16image = pipe(prompt, num_inference_steps=25, guidance_scale=7.5).images[0]
17image.save("output.png")pytorch_lora_weights_webui.safetensors file and place it in your WebUI's LoRA directory.
Use the trigger word AN1 in your prompts.AN1