File size: 7,139 Bytes
2b754f2 29a790a 2b754f2 29a790a 1a54aed 29a790a 1a54aed 29a790a 4acbc64 29a790a 4acbc64 29a790a 4acbc64 29a790a 4acbc64 29a790a 4acbc64 29a790a 4acbc64 29a790a 4acbc64 29a790a 4acbc64 29a790a 4acbc64 29a790a 4acbc64 29a790a 4acbc64 29a790a 4acbc64 29a790a 4acbc64 29a790a 4acbc64 29a790a 4acbc64 29a790a bf0d6d3 29a790a |
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 |
---
license: creativeml-openrail-m
tags:
- text-to-image
- stable-diffusion
- anime
- aiart
---
**This model is trained on 33 different concepts from Bofuri: I Don't Want to Get Hurt, so I'll Max Out My Defense (防振り: 痛いのは嫌なので防御力に極振りしたいと思います。)**
### Example Generations
Prompt: `BoMaple uniform BoSally unfirom, yuri, in classroom, 4K wallpaper, beautiful eyes`
![00178-20230130032925.png](https://huggingface.co/alea31415/bofuri-full/resolve/main/example_generations/00178-20230130032925.png)
Prompt: `2girls, BoMay BoYui, yuri, half body, floating in the sky, cloud, sparkling eyes, 4K wallpaer, anime coloring, official art`
![00160-20230129233812.png](https://huggingface.co/alea31415/bofuri-full/resolve/main/example_generations/00004-20230129235857.png)
Prompt: `BoKanade casting magic, 4K wallpaper, outdoors`
![00171-20230130031256.png](https://huggingface.co/alea31415/bofuri-full/resolve/main/example_generations/00171-20230130031256.png)
(Negative is mostly variations of: `bad hands, 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`)
### Usage
The model is shared in both diffuser and safetensors format. Intermediate checkpoints are also shared in ckpt format in the directory `checkpoints`.
### Concepts
The 33 concepts are listed in `concept_list` and demonstrated below.
BoMaple +
![00160-20230129224806.jpg](https://huggingface.co/alea31415/bofuri-full/resolve/main/example_generations/grids/00160-20230129224806.jpg)
BoSally +
![00159-20230129224620.jpg](https://huggingface.co/alea31415/bofuri-full/resolve/main/example_generations/grids/00159-20230129224620.jpg)
The following use the full name of the concepts
![00158-20230129224502.jpg](https://huggingface.co/alea31415/bofuri-full/resolve/main/example_generations/grids/00158-20230129224502.jpg)
![00155-20230129224024.jpg](https://huggingface.co/alea31415/bofuri-full/resolve/main/example_generations/grids/00155-20230129224024.jpg)
![00156-20230129224057.jpg](https://huggingface.co/alea31415/bofuri-full/resolve/main/example_generations/grids/00156-20230129224057.jpg)
![00161-20230129224952.jpg](https://huggingface.co/alea31415/bofuri-full/resolve/main/example_generations/grids/00161-20230129224952.jpg)
![00162-20230129225037.jpg](https://huggingface.co/alea31415/bofuri-full/resolve/main/example_generations/grids/00162-20230129225037.jpg)
![00163-20230129230351.jpg](https://huggingface.co/alea31415/bofuri-full/resolve/main/example_generations/grids/00163-20230129230351.jpg)
Expect bad results for `BoMaple sheep form` and non-human concepts. Espeically the model clearly does not understand the anatomy and the size of syrup (well it is true it's size is not fixed).
For `BoKasumi sarashi` adding `bandages` seems to help. For `BoMaple pajama` you can add `stripe` for more similarity to the pajama appearing in anime.
The remaining concepts should go through smoothly.
#### Prompt format
During training the concept names are put at the beginning of the images separated only by spaces, but not doing so seems to work as well.
Put `aniscreen` after the concept names would reinfoce the anime style.
Having two concepts in a same image is fairly doable as demonstrated above.
However, expect weird blending to happen most of the time starting from three concepts.
This is partially because this model is not trained too much on multi-concept scenes.
Below is roughly the best we can get after multiply tries (there is still clothes blending).
Prompt: `(BoMaple black armor) BoSally turtleneck BoKasumi, 3girls, 4K wallpaper, ahoge, black hair, brown hair, outdoors, long hair`
![00173-20230130032043.png](https://huggingface.co/alea31415/bofuri-full/resolve/main/example_generations/00173-20230130032043.png)
### More Generations
Prompt: `BoMaple black armors aniscreen, 1girl solo, Hydra in the sky, light purple eyes, 4K wallpaper`
![00169-20230130025735.png](https://huggingface.co/alea31415/bofuri-full/resolve/main/example_generations/00169-20230130025735.png)
Prompt: `BoMaple black armors near small turtle syrup, sitting with knees up on rock looking at viewer, turtle shell, beautiful hand in glove, in front of trees , outdoors, close-up, 4K wallpaper`
![00172-20230130031750.png](https://huggingface.co/alea31415/bofuri-full/resolve/main/example_generations/00172-20230130031750.png)
Prompt: `BoMaple pajama stripe, sitting on bed with barefoot, in girl's room, detailed and fancy background, sparkling purple eyes, hand on bed, 4K wallpaper`
![00170-20230130031100.png](https://huggingface.co/alea31415/bofuri-full/resolve/main/example_generations/00170-20230130031100.png)
Prompt: `BoFrederica, cowboy shot, in rubble ruins, ((under blue sky)), cinematic angle, dynamic pose, oblique angle, 4K wallpaer, anime coloring, official art`
![00362-20230130022355.png](https://huggingface.co/alea31415/bofuri-full/resolve/main/example_generations/00362-20230130022355.png)
Prompt: `Turtle Syrup Fox Oboro next to each other simple background white background, animals`
![00166-20230130023653.png](https://huggingface.co/alea31415/bofuri-full/resolve/main/example_generations/00166-20230130023653.png)
Failures are of course unavoidable
![00028-20230129180937.png](https://huggingface.co/alea31415/bofuri-full/resolve/main/example_generations/00028-20230129180937.png)
![00036-20230129181641.png](https://huggingface.co/alea31415/bofuri-full/resolve/main/example_generations/00036-20230129181641.png)
Finally, you can always get different styles via model merging
![00184-20230130034851.png](https://huggingface.co/alea31415/bofuri-full/resolve/main/example_generations/00184-20230130034851.png)
### Dataset Description
The dataset is prepared via the workflow detailed here: https://github.com/cyber-meow/anime_screenshot_pipeline
It contains 27031 images with the following composition
- 7752 bofuri images mainly composed of screenshots from the first season and of the first three episods of the second season
- 19279 regularization images which intend to be as various as possible while being in anime style (i.e. no photorealistic image is used)
Note that the model is trained with a specific weighting scheme to balance between different concepts so that every image does not weight equally.
After applying the per-image repeat we get around 200K images per epoch.
### Training
Training is done with [EveryDream2](https://github.com/victorchall/EveryDream2trainer) trainer with [ACertainty](https://huggingface.co/JosephusCheung/ACertainty) as base model.
I use the following configuration thanks to the suggestion of 金Goldkoron
- resolution 512
- cosine learning rate scheduler, lr 2.5e-6
- batch size 4
- conditional dropout 0.05
- change beta scheduler from `scaler_linear` to `linear` in `config.json` of the scheduler of the model
- clip skip 1
The released model is trained for 57751 steps, but among the provided checkpoints all the three starting from 34172 steps seem to work reasonably well. |