Downloads · 30 days
13
7% of all-time downloads
KALIN727/Kalin_Lineart
Kalin_Lineart is a text-to-image model from KALIN727. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as other.
Downloads · 30 days
13
7% of all-time downloads
All-time downloads
177
Public
Repo size
127 MB
Likes
2
Public
Click a slice to open those files.
.safetensors85.4 MB · 67%
From the Hugging Face model README
Download them in the Files & versions tab.
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")