Views
No views yet

wd-1-4-anime_e2.ckpt) with a learning rate of 2.0e-6, 15000 training steps and 4 batch sizes on the 257 artworks collected from Danbooru. This model supposed to be a continuation of hitokomoru-diffusion fine-tuned from Anything V3.0. Dataset has been preprocessed using Aspect Ratio Bucketing Tool so that it can be converted to latents and trained at non-square resolutions. Like other anime-style Stable Diffusion models, it also supports Danbooru tags to generate images.Automatic1111's Stable Diffusion Webui see: how-to-usediffusershitokomoru-v2.ckpt here, or download the safetensors version here.Automatic1111's Stable Diffusion Webui, you need to put inference config .YAML file next to the model, you can find it hereworst quality, low quality, medium quality, deleted, lowres, comic, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, jpeg artifacts, signature, watermark, username, blurrymasterpiece, best quality, high quality, absurdrespip install diffusers transformers accelerate scipy safetensors1import torch
2from torch import autocast
3from diffusers import StableDiffusionPipeline, DPMSolverMultistepScheduler
4
5model_id = "Linaqruf/hitokomoru-diffusion-v2"
6
7# Use the DPMSolverMultistepScheduler (DPM-Solver++) scheduler here instead
8pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
9pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
10pipe = pipe.to("cuda")
11
12prompt = "masterpiece, best quality, high quality, 1girl, solo, sitting, confident expression, long blonde hair, blue eyes, formal dress"
13negative_prompt = "worst quality, low quality, medium quality, deleted, lowres, comic, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, jpeg artifacts, signature, watermark, username, blurry"
14
15with autocast("cuda"):
16 image = pipe(prompt,
17 negative_prompt=negative_prompt,
18 width=512,
19 height=728,
20 guidance_scale=12,
21 num_inference_steps=50).images[0]
22
23image.save("anime_girl.png")
masterpiece, best quality, high quality, 1girl, solo, sitting, confident expression, long blonde hair, blue eyes, formal dress, jewelry, make-up, luxury, close-up, face, upper body.
Negative prompt: worst quality, low quality, medium quality, deleted, lowres, comic, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, jpeg artifacts, signature, watermark, username, blurry
Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed: 994051800, Size: 512x768, Model hash: ea61e913a0, Model: hitokomoru-v2, Batch size: 2, Batch pos: 0, Denoising strength: 0.6, Clip skip: 2, ENSD: 31337, Hires upscale: 1.5, Hires steps: 20, Hires upscaler: Latent (nearest-exact)