Downloads · 30 days
132
31% of all-time downloads
kiel2/Kiel-2-Image-HD
Kiel-2-Image-HD is a text-to-image model from kiel2. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as creativeml-openrail-m.
Kiel-2-Image-HD is a custom-trained Stable Diffusion XL (SDXL) LoRA model designed for high-definition, cinematic character generation. It supports both Text-to-Image and Image-to-Image workflows, delivering rich skin…
Downloads · 30 days
132
31% of all-time downloads
All-time downloads
432
Public
Repo size
31.4 GB
Likes
1
Public
Click a slice to open those files.
.safetensors12.2 GB · 50%
From the Hugging Face model README
Kiel-2-Image-HD is a custom-trained Stable Diffusion XL (SDXL) LoRA model designed for high-definition, cinematic character generation. It supports both Text-to-Image and Image-to-Image workflows, delivering rich skin textures, dramatic lighting, and sharp stylistic consistency.
pytorch_lora_weights.safetensors: Standard PEFT LoRA weights (recommended for dynamic loading and blending).model_merged_fp16.safetensors: Full 16-bit standalone merged checkpoint.model_Q4_K_M.gguf: 4-bit quantized GGUF format for memory-efficient local inference (e.g., ComfyUI).You can load and use the LoRA weights directly with the Diffusers library for both text-to-image and image-to-image tasks:
StableDiffusionXLPipeline)import torch
from diffusers import StableDiffusionXLPipeline
# Load base SDXL pipeline
pipeline = StableDiffusionXLPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
torch_dtype=torch.float16,
variant="fp16",
use_safetensors=True
)
pipeline.enable_model_cpu_offload()
# Load Kiel-2-Image-HD LoRA weights
pipeline.load_lora_weights("kiel2/Kiel-2-Image-HD", weight_name="pytorch_lora_weights.safetensors")
# Text-to-Image Generation
prompt = "A cinematic close-up portrait of the man, detailed skin texture, natural lighting, masterpiece"
negative_prompt = "blurry, low quality, distorted, deformed face, plastic skin, waxy"
image = pipeline(
prompt=prompt,
negative_prompt=negative_prompt,
num_inference_steps=35,
guidance_scale=7.5,
cross_attention_kwargs={"scale": 0.75}
).images[0]
image.save("output.png")
2. Image-to-Image (StableDiffusionXLImg2ImgPipeline)
Python
import torch
from diffusers import StableDiffusionXLImg2ImgPipeline
from diffusers.utils import load_image
# Load pipeline for Image-to-Image
pipeline = StableDiffusionXLImg2ImgPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
torch_dtype=torch.float16,
variant="fp16",
use_safetensors=True
)
pipeline.enable_model_cpu_offload()
# Load LoRA weights
pipeline.load_lora_weights("kiel2/Kiel-2-Image-HD", weight_name="pytorch_lora_weights.safetensors")
# Load input source image
init_image = load_image("[https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/input_file_sd.png](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/input_file_sd.png)").resize((1024, 1024))
prompt = "A cinematic portrait of the man in an outdoor canyon setting"
image = pipeline(
prompt=prompt,
image=init_image,
strength=0.75,
guidance_scale=7.5,
cross_attention_kwargs={"scale": 0.75}
).images[0]
image.save("img2img_output.png")