Downloads · 30 days
59
18% of all-time downloads
kishlaykumar1995/blinky-sdxl-dbooth-lora-32-1k
blinky-sdxl-dbooth-lora-32-1k is a text-to-image model from kishlaykumar1995. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as openrail++.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
59
18% of all-time downloads
All-time downloads
332
Public
Repo size
1.4 GB
Likes
0
Public
Click a slice to open those files.
.bin948 MB · 56%
From the Hugging Face model README
These are kishlaykumar1995/blinky-sdxl-dbooth-lora-32-1k LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0.
The weights were trained using DreamBooth.
LoRA for the text encoder was enabled: True.
Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
You should use a photo of sks cartoon character to trigger the image generation.
Weights for this model are available in Safetensors format.
Download them in the Files & versions tab.
# Load the VAE
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16, use_safetensors=True)
base = DiffusionPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
torch_dtype=torch.float16,
vae=vae,
# tokenizer=tokenizer,
variant="fp16",
).to("cuda") # .to("cpu")
# Load the scheduler
base.scheduler = EulerDiscreteScheduler.from_config(base.scheduler.config)
# Load the LoRA
base.load_lora_weights("kishlaykumar1995/blinky-sdxl-dbooth-lora-32-1k")
# Generate an image with 75 inference steps
prompt = "A sks cartoon character driving a luxury car"
negative_prompt = "blurry, broken, distorted"
# Set the LoRA scale
lora_scale = 0.8
# Number of steps
num_inference_steps=75
# Guidance scale
guidance_scale = 18.5
# Load the scheduler
base.scheduler = EulerDiscreteScheduler.from_config(base.scheduler.config)
# Create a generator and set the seed
generator = torch.Generator(device="cuda").manual_seed(16312)
# Generate the output image
output = base(prompt=prompt, num_inference_steps=num_inference_steps, generator=generator,
negative_prompt=negative_prompt, guidance_scale=guidance_scale,
cross_attention_kwargs={"scale": lora_scale})
[TODO: provide examples of latent issues and potential remediations]
[TODO: describe the data used to train the model]