Kalin_Lineart / README.md
KALIN727's picture
Update README.md (#9)
f87c64d verified
metadata
tags:
  - text-to-image
  - lora
  - diffusers
  - template:diffusion-lora
widget:
  - text: >-
      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
    parameters:
      negative_prompt: nipples, worst quality,ugly,bad anatomy,jpeg artifacts
    output:
      url: images/IMG_3356.jpeg
base_model: cagliostrolab/animagine-xl-3.1
instance_prompt: null
license: other
license_link: LICENSE
extra_gated_prompt: "# KALIN線画LoRA 利用規約\nKALIN線画LoRAをご利用いただき、ありがとうございます。本LoRAを使用するにあたり、以下の利用規約を遵守してください。\n1. 禁止事項\n  a.\t政治的な発信\n\t本LoRAを使用して政治的な意図を持ったコンテンツを制作および発信することを禁止します。\n  b.\t誹謗中傷の禁止\n  \t他者を誹謗中傷する内容、差別的・攻撃的な目的で本LoRAを使用しないでください。\n  c.\t児童ポルノやディープフェイクの禁止\n  \t本LoRAを使用して児童ポルノやディープフェイクコンテンツを制作することを固く禁じます。\n  d.\t商用利用\n  \t商用利用を希望する場合は、事前に[@kozukiren](https://x.com/kozukiren)までご相談ください。\n  e.\tプロンプト内容の制限\n  \t以下のようなプロンプトを入力してコンテンツを生成することを禁止します:\n      - 著作権や商標権など他者の知的財産権を侵害するもの\n      - 公序良俗に反するもの\n      - 他者の肖像権やプライバシー権を侵害する可能性のあるもの    \n2. 制限事項\n  a.\tR-18コンテンツの取り扱い\n  \tR-18に該当するコンテンツを制作する場合は、以下の方法でのみ公開してください:\n      - 鍵付きアカウント\n      - プライベッターなどの鍵付き外部サイト\n      - X(旧Twitter)に直接投稿することは禁止します。\n3. 推奨事項\n  a.\t生成コンテンツのチェック\n      本LoRAを使用して生成したコンテンツが、本規約や法令、公序良俗に反しないか事前に確認してください。\n4. 免責事項\n    本LoRAの利用によって発生したトラブルや損害について、制作者は一切の責任を負いません。\n本規約は、利用者と制作者の双方の権利を守り、安全かつ公正な利用を促進することを目的としています。規約を守って、KALIN線画LoRAをご活用ください。\n\nKALIN-Lineart LoRA Terms of Use\nThank you for using the KALIN-style LoRA. Please ensure compliance with the following terms when using this LoRA.\n1. Prohibited Actions\n\n  a. Political Content\n      It is prohibited to create or distribute content with political intent using this LoRA.\n\n  b. Prohibition of Defamation and Harassment\n  \tDo not use this LoRA to produce content that defames, harasses, or discriminates against others, or for offensive purposes.\n\n  c. Prohibition of Child Pornography and Deepfakes\n  \tThe creation of child pornography or deepfake content using this LoRA is strictly forbidden.\n\n  d. Commercial Use\n  \tIf you wish to use this LoRA for commercial purposes, please consult with [@kozukiren](https://x.com/kozukiren) in advance.\n\n  e. Prompt Content Restrictions\n\t•\tDo not input prompts or generate content that includes:\n\t•\tViolations of copyrights, trademarks, or other intellectual property rights.\n\t•\tContent that goes against public order and morals.\n\t•\tPotential violations of others’ portrait rights or privacy.\n\n2. Restrictions\n\n  a. Handling of R-18 Content\n\t•\tIf you create R-18 content using this LoRA, please publish it only in the following ways:\n\t•\tFrom private (locked) accounts.\n\t•\tOn external platforms with restricted access, such as Privatter.\n\t•\tDo not post R-18 content directly on X (formerly Twitter).\n\n3. Recommendations\n\n  a. Content Review\n\t•\tPlease ensure that any content generated using this LoRA complies with these terms, applicable laws, and public decency before publication.\n\n4. Disclaimer\n\n\tThe creator assumes no responsibility for any disputes or damages arising from the use of this LoRA.\n\nThis agreement aims to protect the rights of both users and the creator while promoting safe and fair use of the KALIN-Lineart LoRA. Please follow these guidelines and enjoy using this LoRA."

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")