ML Projects for Blogs
Collection
Collection of ML projects that I have created over time. • 20 items • Updated • 2
How to use kingabzpro/sdxl-lora-abid with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("kingabzpro/sdxl-lora-abid", dtype=torch.bfloat16, device_map="cuda")
prompt = "A photo of Abid Ali Awan wearing casual clothes, taking a selfie, and smiling."
image = pipe(prompt).images[0]import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("kingabzpro/sdxl-lora-abid", dtype=torch.bfloat16, device_map="cuda")
prompt = "A photo of Abid Ali Awan wearing casual clothes, taking a selfie, and smiling."
image = pipe(prompt).images[0]Base model
stabilityai/stable-diffusion-xl-base-1.0