How to use from the
Use from the
Diffusers library
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline

# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("cagliostrolab/animagine-xl-3.1", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("KALIN727/Kalin_Lineart")

prompt = "greyscale, lineart, white background, solo, looking at viewer, simple background, 1boy, bara, male focus, muscular male, muscular, orc, facial hair, blush, solo, tusks, pectorals, monster boy, large pectorals, mature male, beard, pointy ears, upper body, shirt, short hair, looking at viewer, thick eyebrows, fangs, <lora:KALIN_line5:1>, masterpiece,best quality"
image = pipe(prompt).images[0]

Kalin_Lineart

Prompt
greyscale, lineart, white background, solo, looking at viewer, simple background, 1boy, bara, male focus, muscular male, muscular, orc, facial hair, blush, solo, tusks, pectorals, monster boy, large pectorals, mature male, beard, pointy ears, upper body, shirt, short hair, looking at viewer, thick eyebrows, fangs, <lora:KALIN_line5:1>, masterpiece,best quality
Negative Prompt
nipples, worst quality,ugly,bad anatomy,jpeg artifacts

Download model

Download them in the Files & versions tab.

Usage on diffusers

You must huggingface-cli login before this script run.

import torch
from diffusers import DiffusionPipeline

pipe = DiffusionPipeline.from_pretrained(
    "cagliostrolab/animagine-xl-3.1", 
    torch_dtype=torch.float16, 
    use_safetensors=True, 
)
pipe.load_lora_weights("KALIN727/Kalin_Lineart",load_lora_weights="KALIN_line.safetensors", adapter_name="KALIN_LINE")
pipe.to('cuda')

prompt = "KALIN_line5, lineart, 1girl, upper body, black bob hair,  T-shirt, denim pants, masterpiece,best quality"
negative_prompt = "nipples, worst quality,ugly,bad anatomy,jpeg artifacts"

image = pipe(
    prompt, 
    negative_prompt=negative_prompt,
    width=832,
    height=1216, 
    guidance_scale=7,
    num_inference_steps=28
).images[0]

image.save("kalin_test.png")
Downloads last month
7
Inference Examples
Examples
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for KALIN727/Kalin_Lineart