Views
No views yet

stabilityai/stable-diffusion-xl-base-1.0.
The weights were trained on sketches of Khabib by ritwikraha using DreamBooth.
You can find some example images in the following.!pip install diffusers accelerate -q
import torch
from PIL import Image
from diffusers import DiffusionPipeline, AutoencoderKL
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('ritwikraha/khabib_sketch_LoRA')
_ = pipe.to("cuda")
prompt = "a sketch of TOK khabib pointing at another khabib like the spiderman meme, monchrome, pen sketch"
negative_prompt ="ugly face, multiple bodies, bad anatomy, disfigured, extra fingers"
image = pipe(prompt=prompt,
negative_prompt=negative_prompt,
guidance_scale=3,
num_inference_steps=50).images[0]
image| Image 1 | Image 2 |
|---|---|
![]() | ![]() |
| Image 3 | Image 4 |
| --- | --- |
![]() | ![]() |