Instructions to use waleriawatson/my-custom-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use waleriawatson/my-custom-lora with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("waleriawatson/my-custom-lora") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
Custom SDXL LoRA Model
This is a custom LoRA (Low-Rank Adaptation) model trained on SDXL.
Usage
from diffusers import StableDiffusionXLPipeline
import torch
# Load the base pipeline
pipeline = StableDiffusionXLPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
torch_dtype=torch.float16
)
# Load this LoRA
pipeline.load_lora_weights("YOUR_USERNAME/YOUR_REPO_NAME")
# Generate image
image = pipeline(
"professional portrait of a person, high quality",
num_inference_steps=25,
guidance_scale=7.5
).images[0]
image.save("result.png")
Model Details
- Base Model: SDXL Base 1.0
- LoRA Rank: 32
- LoRA Alpha: 16
- Training Images: 14 images
- File Size: ~12 MB
Recommended Settings
- LoRA Scale: 0.7-0.9
- CFG Scale: 7-8
- Steps: 25-30
- Resolution: 1024x1024
Example Prompts
- "professional portrait of a person in business attire, corporate headshot"
- "casual portrait of a person wearing a hoodie, urban setting"
- "elegant portrait of a person in formal evening wear, studio lighting"
- Downloads last month
- 12
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for waleriawatson/my-custom-lora
Base model
stabilityai/stable-diffusion-xl-base-1.0