File size: 5,621 Bytes
356a4be 9138bd4 356a4be 61a00be 356a4be |
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 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 |
---
pipeline_tag: text-to-image
---
# Hatsu Preview1: An Anime Model from Scratch in 1.5 GPU Days
||
|:--:|
|`1girl, solo, general` non-cherrypicked samples|
This is a status report demonstrating the capabilities and shortcomings of Hatsu Preview1. The code and a more comprehensive report will be provided upon proper release.
## Model Summary
Hatsu Preview1 is a 117M + 63M parameter tags-to-image generation model. It is created with the main objective of setting a simple baseline for anime models.
The model consists of a 117M parameter image generator and a 63M parameter condition generator.
The image generator operates in a 56x80 RGB space, while the condition generator creates 1024D condition vectors given a set of tags.
For ease of use, the condition generator accepts arbitrary subsets of the tags instead of requiring the user to specify every tag. As in a [previous exploration](https://huggingface.co/gustproof/1girl-EDM2-XS-test-1), the 1024D vectors are encodings created by a [pretrained tagger](https://huggingface.co/SmilingWolf/wd-eva02-large-tagger-v3). The condition supports a total of ~9k rating/general/character tags, although not all of them are well-understood.
The training dataset is a 1.1M-image `1girl solo` subset of the [Danbooru2023 dataset](https://huggingface.co/datasets/nyanko7/danbooru2023), downscaled to 56x80.
The image generator is trained for 57M images, and the condition generator is trained for 268M images. The combined training can be completed in ~1.5 days on a 4090 GPU.
## Qualitative Results
Other than removing explicit images, the generated images are not cherry-picked. Each row of 4 images shares the same condition.
### Basic Tags
---
`general, dress`

---
`smile, blush, sensitive`

---
`sensitive, large breasts, cat ears, long hair, purple eyes, swimsuit`

---
`sensitive, black leotard, sideboob, blue eyes, blue hair`

---
`general, white pantyhose, black hair, medium hair, maid, detached collar`

---
`general, bench, black hair, black socks, blush, book, brown eyes, closed mouth, from above, holding, holding book, kneehighs, legs, looking at viewer, on bench, open book, pink shirt, shirt, short hair, short sleeves, sitting, skirt, smile, socks, t-shirt, thighs, white skirt`

---
`general, bench, black hair, black socks, blush, book, brown eyes, closed mouth, from above, holding, holding book, kneehighs, legs, looking at viewer, on bench, open book, pink shirt, shirt, short hair, short sleeves, sitting, skirt, smile, socks, t-shirt, thighs, white skirt`

---
`general, bare shoulders, blue background, blue eyes, blue hair, breasts, choker, cleavage, dress, facing viewer, falling petals, hair behind ear, hair between eyes, lips, looking to the side, medium hair, off-shoulder dress, off shoulder, parted bangs, parted lips, petals, ribbon, ribbon choker, simple background, skirt hold, wind, yellow choker, yellow dress, yellow ribbon`

---
`bare shoulders, between breasts, blunt bangs, breasts, brown hair, bug, butterfly, cleavage, closed mouth, dot nose, dress, field, flower, green eyes, hair flower, hair ornament, hairpin, jewelry, large breasts, long hair, looking at viewer, lying, necklace, sleeveless, sleeveless dress, sundress, thighs, very long hair, white butterfly, white dress, white flower, sensitive`
`

---
`blue dress, blush, breasts, bug, bun cover, butterfly, butterfly on hand, china dress, chinese clothes, cleavage, cleavage cutout, clothing cutout, collared dress, contrapposto, cowboy shot, double bun, dress, frilled dress, frilled sleeves, frills, gold trim, hair bun, hand up, head tilt, hip vent, lace trim, long hair, looking at viewer, medium breasts, parted lips, purple eyes, single sidelock, standing, thigh strap, thighs, twintails, very long hair, white hair, sensitive`

---
### Character Understanding
---
`hatsune miku, general`

---
`hatsune miku, general, grey shirt, black skirt, pleated skirt`

---
`hatsune miku, sensitive, competition swimsuit`

---
`remilia scarlet, general`

---
`kafuu chino, general`

---
`kashima (kancolle), sensitive`

---
`kanzaki ranko, general`

---
`yumemi riamu, sensitive`

---
`rice shower (umamusume), general`

---
`sagisawa fumika, sensitive, cowboy shot`

---
### Image Reference
These images directly use the embeddings created by the tagger from an reference image instead of using the condition generator.
---
[Reference](https://x.com/tsuchi_e/status/1908899715590013092)

---
[Reference](https://x.com/izumi_huna/status/1908924330425401780)

---
[Reference](https://x.com/manmarumikan_/status/1908866071790260507)

---
[Reference](https://x.com/seihekiog/status/1906259356393287724)

---
[Reference](https://x.com/piroyan_frs/status/1807369027423293686)

---
[Reference](https://x.com/Kamizuki_S1/status/1906985900812501491)

---
## Todo
- Support non-solo images
- Scale up the model and resolution
- Add proper style and character conditioning |