readme: ---
  license: openrail++
  tags:
  - stable-diffusion
  - text-to-image
  ---
  
  # fate-diffusion
  
  This model is resumed from [stable-diffusion-2](https://huggingface.co/stabilityai/stable-diffusion-2) for 10 epochs on 53k images of fate series filtered by [aesthetic score](https://github.com/waifu-diffusion/aesthetic)>=0.9, and then 10 epoch on datasets added 8k images of closing up on face. 
  Caption is danbooru style tags inferenced by [wd1-4 tagger](https://github.com/toriato/stable-diffusion-webui-wd14-tagger).
  
  # Usage
  
  almostly same as original model except model_id = "furusu/fate-diffusion".
  ```bash
  pip install --upgrade git+https://github.com/huggingface/diffusers.git transformers accelerate scipy
  ```
  ```python
  import torch
  from diffusers import StableDiffusionPipeline, EulerDiscreteScheduler
  model_id = "furusu/fate-diffusion"
  # Use the Euler scheduler here instead
  scheduler = EulerDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler")
  pipe = StableDiffusionPipeline.from_pretrained(model_id, scheduler=scheduler, torch_dtype=torch.float16)
  pipe = pipe.to("cuda")
  prompt = "artoria pendragon,fate,standing,armor,gauntlets,hair ribbon,green eyes,puffy sleeves,skirt"
  negative_prompt = "lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry"
  
  image = pipe(prompt, height=768, width=768,negative_prompt=negative_prompt).images[0]
      
  image.save("image.png")
  ```
  You can also use it on webui by putting [fate-diffusion.ckpt](fate-diffusion.ckpt) and [fate-diffusion.yaml](fate-diffusion.yaml) into models/Stable-Diffusion. See [this link](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features#stable-diffusion-20).
  
  # Generation examples
  
  with negative prompt:lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry
  
  
  artoria pendragon,fate,solo,standing,armor,gauntlets,hair ribbon,green eyes,puffy sleeves,skirt,blush
  ![image](artoria.png)
  
  nero claudius,bride,fate,sitting,bridal veil,((blush)),zipper,cleavage,white gloves,leotard,thighhighs,flower,belt,green eyes
  ![image](nero_bride1.png)
  
  1girl,highres,solo,looking at viewer,blonde hair,twintails,maid,maid headdress,skirt,thighhighs,red eyes,blush
  ![image](twintailsmaid.png)
  