How to use from the
Use from the
Diffusers library
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline

# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("zenless-lab/sdxl-anything-xl", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("dada22231/dsafsdaf")

prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]

LoRA Model

This is a LoRA (Low-Rank Adaptation) model trained on SDXL.

Model Details

  • Base Model: zenless-lab/sdxl-anything-xl
  • Training Method: LoRA
  • LoRA Rank: 64
  • Optimizer: Prodigy

Usage

from diffusers import DiffusionPipeline
import torch

# Load pipeline
pipe = DiffusionPipeline.from_pretrained(
    "zenless-lab/sdxl-anything-xl",
    torch_dtype=torch.float16
).to("cuda")

# Load LoRA weights
pipe.load_lora_weights("dada22231/b426e506-75a2-4d9a-8952-22652d903752")

# Generate image
prompt = "your prompt in lora style"
image = pipe(prompt).images[0]

Training Details

  • Trained with AI Toolkit
  • Mixed precision: bf16
  • Batch size: 12
Downloads last month
14
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for dada22231/dsafsdaf