Downloads · 30 days
15
2% of all-time downloads
ritwikraha/khabib_sketch_LoRA
khabib_sketch_LoRA is a text-to-image model from ritwikraha. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as cc-by-2.0.
A LoRA adaptation of SDXL to produce sketches of the MMA fighter and G.O.A.T Khabib.
Downloads · 30 days
15
2% of all-time downloads
All-time downloads
822
Public
Repo size
23.5 MB
Likes
2
Public
Click a slice to open those files.
.safetensors23.4 MB · 97%
From the Hugging Face model README
A LoRA adaptation of SDXL to produce sketches of the MMA fighter and G.O.A.T Khabib.
<figure> <img src="https://i.imgur.com/eIn5oqJ.png" alt="Khabib" width="256" height="256"> <figcaption>Sketch of Khabib fighting a Bengal Tiger</figcaption> </figure>These are LoRA adaption weights for 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.
Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
DataSet: custom hand-drawn sketches by ritwikraha
!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 |
| --- | --- |
![]() | ![]() |