Text-to-Image
Diffusers
TensorBoard
diffusers-training
lora
template:sd-lora
stable-diffusion-xl
stable-diffusion-xl-diffusers
Instructions to use zamasW/drug_resized_LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use zamasW/drug_resized_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("zamasW/drug_resized_LoRA") prompt = "a face after drug abuse" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
SDXL LoRA DreamBooth - zamasW/drug_resized_LoRA
Model description
These are zamasW/drug_resized_LoRA LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0.
The weights were trained using DreamBooth.
LoRA for the text encoder was enabled: False.
Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
Trigger words
You should use a face after drug abuse to trigger the image generation.
Download model
Weights for this model are available in Safetensors format.
Download them in the Files & versions tab.
Intended uses & limitations
How to use
import torch
from diffusers import DiffusionPipeline, AutoencoderKL
repo_id = 'zamasW/drug_resized_LoRA'
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
pipe = DiffusionPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
vae=vae,
torch_dtype=torch.float16,
variant="fp16",
use_safetensors=True
)
pipe.load_lora_weights(repo_id)
_ = pipe.to("cuda")
prompt = "a face after drug abuse"
image = pipe(prompt=prompt, num_inference_steps=25).images[0]
Limitations and bias
coming soon
Training details
Dataset : over 50 images of 1080*1080 of drug abused faces
- Model: stabilityai/stable-diffusion-xl-base-1.0
- VAE: madebyollin/sdxl-vae-fp16-fix
- Instance Prompt: "a face after dug abuse"
- Image Resolution: 1024 x 1024
- Training Batch Size: 1
- Gradient Accumulation Steps: 3
- Gradient Checkpointing: Enabled
- Learning Rate: 1e-4
- SNR Gamma: 5.0
- LR Scheduler: constant
- Warmup Steps: 0
- Precision: fp16 (mixed precision)
- Optimizer: 8-bit Adam
- Max Train Steps: 500
- Checkpointing Steps: 717
- Seed: 0
- Downloads last month
- 8
Model tree for zamasW/drug_resized_LoRA
Base model
stabilityai/stable-diffusion-xl-base-1.0