File size: 7,738 Bytes
b0750d7 aa40637 2a8d27c b0750d7 aa40637 08c09df aa40637 7691b31 aa40637 08c09df aa40637 0a0cef0 aa40637 c24d9a0 aa40637 c24d9a0 aa40637 c24d9a0 c900b60 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
---
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](https://huggingface.co/waifu-diffusion/wd-1-5-beta3/blob/main/wd-beta3-base-fp16.safetensors) ใใใผในใซใใใขใใซใงใใ
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](https://huggingface.co/p1atdev/Realgar-v1/blob/main/ParaNegative.safetensors).
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](https://huggingface.co/p1atdev/Realgar-v1/blob/main/ParaNegative.safetensors) ใไฝฟใใใจใๅบๆฅใพใใ(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](https://huggingface.co/hakurei/waifu-diffusion-v1-4/blob/main/vae/kl-f8-anime2.ckpt) ใๆจๅฅจใงใใ
## 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/) ใฎไธ้
ๅธใใใพใใ็ๆใตใผใในใชใฉใงใใฎใขใใซใพใใฏๆดพ็ใขใใซใไฝฟใๅ ดๅใฏใใตใผใในใฎๅฉ็จ่
ใซใขใใซใๅ
ฌ้ใใๅฟ
่ฆใใใใพใใ่ฉณใใใปๆญฃ็ขบใชใฉใคใปใณในใฏ [ๅๆ](https://freedevproject.org/faipl-1.0-sd/) ใๅ็
งใใ ใใใ
## Examples
![image-0](https://huggingface.co/p1atdev/Realgar-v1/resolve/main/images/image-0.jpg)
```
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
```
![image-1](https://huggingface.co/p1atdev/Realgar-v1/resolve/main/images/image-1.jpg)
```
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
```
![image-2](https://huggingface.co/p1atdev/Realgar-v1/resolve/main/images/image-2.jpg)
```
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
```
![image-3](https://huggingface.co/p1atdev/Realgar-v1/resolve/main/images/image-3.jpg)
```
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
```
![image-4](https://huggingface.co/p1atdev/Realgar-v1/resolve/main/images/image-4.jpg)
```
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
```
![image-5](https://huggingface.co/p1atdev/Realgar-v1/resolve/main/images/image-5.jpg)
```
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
[![open in colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/#fileId=https://huggingface.co/p1atdev/Realgar-v1/blob/main/diffusers.ipynb)
```bash
pip install diffusers transformers accelerate scipy safetensors
pip install xformers
```
```py
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")
```
|