CYBERCOMIC-SDXL-v1
Sci-fi comic style LoRA
2 min readupdated
The new model is designed to generate images in the style of classic American superhero and science fiction comics. It adds characteristic bold black ink outlines, expressive shadows, and dynamic composition to pictures. Built on the stable SDXL 1.0 base model (an advanced text-to-image AI model), the adaptation is implemented as a LoRA (a small fine-tuning add-on for the base model) with a rank of 16. The tool is suitable for artists, comic book authors, and digital art enthusiasts looking to create stylized illustrations.
Key features
- Focus on high-contrast sci-fi and superhero style
- Distinct ink outlines and deep cross-hatching
- Trained on a carefully curated dataset of 280 images
- Trigger word support for precise style activation
What you can do
- Generate futuristic superheroes and characters in dynamic poses
- Create sci-fi cityscapes and rooftop night scenes
- Design illustrations for a graphic novel or comic book
- Adjust the LoRA strength to achieve the desired level of styling
Example
import torch
from diffusers import StableDiffusionXLPipeline, AutoencoderKL
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
pipe = StableDiffusionXLPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
vae=vae,
torch_dtype=torch.float16,
variant="fp16",
use_safetensors=True
).to("cuda")
pipe.load_lora_weights("Safinul/CYBERCOMIC-SDXL-v1", weight_name="cybercomic_sdxl_v1.safetensors")
prompt = "cb_comic_style, comic book character art, a futuristic cybernetic superhero standing on a rooftop at night, glowing blue eyes, dynamic action pose, bold ink outlines"
negative_prompt = "speech bubble, text, caption box, watermark, 3d render, photorealistic, blurry, deformed hands"
image = pipe(
prompt=prompt,
negative_prompt=negative_prompt,
num_inference_steps=30,
guidance_scale=7.0,
width=768,
height=1024,
cross_attention_kwargs={"scale": 0.9}
).images[0]
image.save("comic_output.png")Read more
DetailsBase model: stabilityai/stable-diffusion-xl-base-1.0
Architecture: LoRA (Rank 16, Alpha 16, U-Net only)
Training: 840 steps, 3 epochs, bf16 precision, AdamW 8-bit optimizer
Recommendations: use the trigger word cb_comic_style and a scale of 0.8–1.0










Comments