license: other
tags:
- stable-diffusion
- safetensors
library_name: diffusers
Realgar-v1.0
This model is a Stable Diffusion model based on WD 1.5 beta 3 base.
This model does not include the NovelAI Leak model.
WD 1.5 beta3 base ใใใผในใซใใใขใใซใงใใ
NAI ใชใผใฏใฏๅซใพใใฆใใพใใใ
Prompting
This model aims for stability with short prompt. It may sometimes be difficult to generate with long prompt or special concepts. Therefore, generating without quality tags such as masterpiece, best quality
does not significantly degrade the quality.
However, as a minimum set of negative prompt, you can use worst quality, low quality, bad aesthetic, oldest, bad anatomy, blurry
, or if you're unsure of good negative prompts, you can use the negative embedding ParaNegative.
To avoid NSFW outputs, it is recommended to include nsfw, nude
and such in the negative prompt.
If you want to avoid real life style, use anime
in positive prompt.
It is recommended to use highres fix if you can.
ใใฎใขใใซใฏ็ญใใใญใณใใใงใฎๅฎๅฎๆงใ่ฟฝๆฑใใใขใใซใงใใ้ทใใใญใณใใใไธ้จใฎใณใณใปใใใใใ ใใๆใใชใๅฏ่ฝๆงใใใใพใใmasterpiece, best quality
ใฏไธ่ฆใงใใ
ใใ ใใๆไฝ้ใฎใใฌใใฃใใใญใณใใใๅฟ
่ฆใงใใใใใชใใจใ worst quality, low quality, bad aesthetic, oldest, bad anatomy, blurry
ใใใใจใใใงใใใ่ฏใใใฌใใฃใใใญใณใใใใใใใชใๅ ดๅใฏ่ฃๅฉ็ใซใใฌใใฃใTI ParaNegative ใไฝฟใใใจใๅบๆฅใพใใ(TI ๅไฝใงใฎๅนๆใฏใใพใๆๅพ
ใใชใใงใใ ใใ)
NSFW ใชๅบๅใ้ฟใใใใใซใ nsfw, nude
ใชใฉใใใฌใใฃใใใญใณใใใซๅ
ฅใใใใจใๆจๅฅจใใพใใ
ๅๅฎ็ใช็ปๅใฎๅบๅใ้ฟใใใๅ ดๅใฏใanime
ใใใธใใฃใใใญใณใใใซใใใฆใใ ใใใ
Highres fix ใไฝฟใใใจใๆจๅฅจใใพใใ
VAE
It is recommended to use the same VAE as WD 1.4, which can be found here https://huggingface.co/hakurei/waifu-diffusion-v1-4/blob/main/vae/kl-f8-anime2.ckpt
WD 1.4 ใฎ VAE ใๆจๅฅจใงใใ
License
This model is released under the Fair AI Public License 1.0-SD (https://freedevproject.org/faipl-1.0-sd/). If any derivative of this model is made, please share your changes accordingly. Special thanks to ronsor/undeleted (https://undeleted.ronsor.com/) for help with the license.
ใใฎใขใใซใฏ WD 1.5 ใจๅใ Fair AI Public License 1.0-SD (https://freedevproject.org/faipl-1.0-sd/) ใฎไธ้ ๅธใใใพใใ็ๆใตใผใในใชใฉใงใใฎใขใใซใพใใฏๆดพ็ใขใใซใไฝฟใๅ ดๅใฏใใตใผใในใฎๅฉ็จ่ ใซใขใใซใๅ ฌ้ใใๅฟ ่ฆใใใใพใใ่ฉณใใใปๆญฃ็ขบใชใฉใคใปใณในใฏ ๅๆ ใๅ็ งใใ ใใใ
Examples
anime, cat ears, red hair, hoodie, hoodie, looking at viewer, lying on flower field, many many many flowers, grass
Negative prompt: nsfw, ParaNegative, worst quality, low quality, bad aesthetic, oldest, blurry,
Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 3482852439, Size: 512x768, Model hash: eb9ce3842e, Model: realgar-v1-fp16, Denoising strength: 0.7, Clip skip: 2, Version: v1.2.1, Hires upscale: 2, Hires steps: 15, Hires upscaler: Latent
anime, 1girl, flat chest, red hair, red hair ornament, parted bangs, bun, hair intakes, fascinator, hand up, v, one eye closed, grin, red clothes, frilled dress, bow, detached sleeves, gloves, looking at viewer, dynamic, cowboy shot, wind, sky
Negative prompt: nsfw, ParaNegative, worst quality, low quality, bad aesthetic, oldest, bad anatomy, blurry,
Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 232540561, Size: 512x768, Model hash: eb9ce3842e, Model: realgar-v1-fp16, Denoising strength: 0.65, Clip skip: 2, Version: v1.2.1, Hires upscale: 2, Hires steps: 15, Hires upscaler: Latent
anime, 1girl, long hair, from side, white hair, star, solo, starry sky, profile, dress, starry sky, sky, long sleeves, star hair ornament, hand up, blue eyes, arm up, standing, looking up, floating hair, white dress, capelet, wavy hair, wide sleeves, glowing, feet out of frame, night sky, hair ornament
Negative prompt: nsfw, ParaNegative, worst quality, low quality, bad aesthetic, oldest, blurry
Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 968862690, Size: 512x768, Model hash: eb9ce3842e, Model: realgar-v1-fp16, Denoising strength: 0.65, Clip skip: 2, Version: v1.2.1, Hires upscale: 2, Hires steps: 15, Hires upscaler: Latent
anime, 1girl, cat ears, blue hair, medium hair, parted bangs, white dress shirt, belt, skirt, barefoot, wariza, sitting, looking at viewer,
Negative prompt: nsfw, ParaNegative, worst quality, low quality, bad aesthetic, oldest, bad anatomy, blurry,
Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 2387123734, Size: 512x768, Model hash: eb9ce3842e, Model: realgar-v1-fp16, Denoising strength: 0.7, Clip skip: 2, Version: v1.2.1, Hires upscale: 2, Hires steps: 15, Hires upscaler: Latent
anime, 2girls wearing school uniform are at restaurant
Negative prompt: nsfw, worst quality, low quality, bad aesthetic, oldest, blurry,
Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 2425583782, Size: 768x512, Model hash: eb9ce3842e, Model: realgar-v1-fp16, Clip skip: 2, Version: v1.2.1
anime, watercolor of 1girl,
Negative prompt: nsfw, worst quality, low quality, bad aesthetic, oldest, blurry,
Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 3429871130, Size: 512x768, Model hash: eb9ce3842e, Model: realgar-v1-fp16, Clip skip: 2, Version: v1.2.1
๐งจ Diffusers
pip install diffusers transformers accelerate scipy safetensors
pip install xformers
import torch
from diffusers import DiffusionPipeline, EulerAncestralDiscreteScheduler
model_id = "p1atdev/Realgar-v1"
pipe = DiffusionPipeline.from_pretrained(
model_id,
torch_dtype=torch.float16,
custom_pipeline="lpw_stable_diffusion"
)
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
pipe = pipe.to("cuda")
pipe.enable_attention_slicing()
pipe.enable_xformers_memory_efficient_attention() # required
prompt = """
anime, 1girl, blue hair, cat ears, sweater vest,
"""
negative_prompt = "nsfw, nude, worst quality, low quality, bad aesthetic, oldest, bad anatomy"
width = 512
height = 768
image = pipe(
prompt,
negative_prompt=negative_prompt,
guidance_scale=7.0,
num_inference_steps=20,
width=width,
height=height,
).images[0]
display(image) # for notebooks
# image.save("girl.png")