readme: ---
  license: creativeml-openrail-m
  language:
  - en
  thumbnail: "https://huggingface.co/andite/yohan-diffusion/resolve/main/example_images/00012-2889043694-best%20quality%2C.png"
  tags:
  - stable-diffusion
  - text-to-image
  inference: true
  widget:
    - text: >-
        masterpiece, best quality, hatsune miku, 1girl
  ---
  
  # Yohan Diffusion
  
  **Welcome to Yohan Diffusion** - a latent diffusion model that has been trained on a Japanese artist's artworks, [yohan1754/Free Style](https://www.pixiv.net/en/users/4446354). This model has been fine-tuned with a learning rate of `2.0e-6` for `20000 training steps` on `226 images` collected from Danbooru. 
  
  The model is trained using [NovelAI Aspect Ratio Bucketing Tool](https://github.com/NovelAI/novelai-aspect-ratio-bucketing) so that it can be trained at non-square resolutions. Like other anime-style Stable Diffusion models, it also supports Danbooru tags to generate images. It is finetuned using [Anything V3](https://huggingface.co/Linaqruf/anything-v3.0) as base model.
  
  **Cocoa**
  
  Recipe:
  
  (Add Difference 1)Yohan-Diffusion + F222 + S.D. 1.4 = YohanMix
  
  (Weighted Sum 0.3) YohanMix + Blossom-extract = Cocoa
  
  **Latte**
  
  Recipe:
  
  (Weighted Sum 0.5) Cocoa + AbyssOrangeMix2_Hard = Latte
  
  **Butter**
  
  Recipe:
  
  (Weighted Sum 0.5) Cocoa + AbyssOrangeMix2_nsfw = Butter
  
  ## MUST DO:
  
  Use Clip Skip 2.
  
  (Optional) It is best not to use "masterpiece" in the prompt since that keyword enforces NAI-ish style, meaning the artstyles would clash each other.
  
  # Dataset
  
  You can find `datasets` used for the model [here](https://huggingface.co/datasets/andite/yohan-tag).
  
  ## 🧨 Diffusers
  
  This model can be used just like any other Stable Diffusion model. For more information,
  please have a look at the [Stable Diffusion](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion).
  
  You can also export the model to [ONNX](https://huggingface.co/docs/diffusers/optimization/onnx), [MPS](https://huggingface.co/docs/diffusers/optimization/mps) and/or [FLAX/JAX]().
  
  ```python
  from diffusers import StableDiffusionPipeline
  import torch
  
  model_id = "andite/yohan-diffusion"
  pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
  pipe = pipe.to("cuda")
  
  prompt = "hatsune_miku"
  image = pipe(prompt).images[0]
  
  image.save("./hatsune_miku.png")
  ```
  
  ## Examples
  
  Below are some examples of images generated using this model:
  
  ![Yohan Example 1](https://huggingface.co/andite/yohan-diffusion/resolve/main/example_images/00000-927419423-best%20quality%2C%20.png)
  ![Yohan Example 2](https://huggingface.co/andite/yohan-diffusion/resolve/main/example_images/00002-3561518470-best%20quality%2C.png)
  ![Yohan Example 3](https://huggingface.co/andite/yohan-diffusion/resolve/main/example_images/00004-669322297-best%20quality%2C%20.png)
  ![Yohan Example 4](https://huggingface.co/andite/yohan-diffusion/resolve/main/example_images/00005-1274771037-best%20quality%2C.png)
  ![Yohan Example 5](https://huggingface.co/andite/yohan-diffusion/resolve/main/example_images/00012-1270904169-best%20quality%2C.png)
  ![Yohan Example 6](https://huggingface.co/andite/yohan-diffusion/resolve/main/example_images/00013-3905726485-best%20quality%2C.png)
  ![Yohan Example 7](https://huggingface.co/andite/yohan-diffusion/resolve/main/example_images/00015-1191281675-best%20quality%2C.png)
  ![Yohan Example 8](https://huggingface.co/andite/yohan-diffusion/resolve/main/example_images/00016-2912484114-best%20quality%2C.png)
  ![Yohan Example 9](https://huggingface.co/andite/yohan-diffusion/resolve/main/example_images/00019-3943606695-best%20quality%2C.png)
  
  ### Prompt and settings for Example Images
  
  **Example 1 and 2**
  ```
  best quality, cinematic lighting, dark, 1girl, breasts, large breasts, solo, gloves, underboob, short hair, navel, brown hair, goggles, fire, hair between eyes, black gloves, looking at viewer, fingerless gloves, goggles on head, cleavage, holding, bare shoulders, bangs, choker, belt, elbow gloves, green eyes, helmet, parted lips, abs, bandaged arm, pants, hammer, sweat, blue eyes, bandages
  Negative prompt: lowres, ((bad anatomy)), ((bad hands)), text, missing finger, extra digits, fewer digits, blurry, ((mutated hands and fingers)), (poorly drawn face), ((mutation)), ((deformed face)), (ugly), ((bad proportions)), ((extra limbs)), extra face, (double head), (extra head), ((extra feet)), monster, logo, cropped, worst quality, low quality, normal quality, jpeg, humpbacked, long body, long neck, ((jpeg artifacts))
  Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed: 927419423, 3561518470, Size: 512x768, Model hash: 783d0732, Model: yohan-diffusion, Denoising strength: 0.7, ENSD: 31337, First pass size: 0x0
  ```
  **Example 3 and 4**
  ```
  best quality, 1girl, breasts, swimsuit, thighhighs, bikini, long hair, large breasts, navel, solo, white bikini, side-tie bikini bottom, brown hair, looking at viewer, black thighhighs, choker, smile, holding, phone, braid, parted lips, bangs, string bikini, cleavage, thighs, very l