Linaqruf commited on
Commit
551643e
1 Parent(s): d43752d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +216 -1
README.md CHANGED
@@ -19,4 +19,219 @@ widget:
19
  parameter:
20
  negative_prompt: nsfw, low quality, worst quality, very displeasing, 3d, watermark, signature, ugly, poorly drawn
21
  example_title: 1boy
22
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  parameter:
20
  negative_prompt: nsfw, low quality, worst quality, very displeasing, 3d, watermark, signature, ugly, poorly drawn
21
  example_title: 1boy
22
+ ---
23
+
24
+ <style>
25
+
26
+ body {
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: center;
30
+ height: 100vh;
31
+ margin: 0;
32
+ font-family: Arial, sans-serif;
33
+ background-color: #f4f4f9;
34
+ overflow: auto;
35
+ }
36
+
37
+ .container {
38
+ display: flex;
39
+ flex-direction: column;
40
+ align-items: center;
41
+ justify-content: center;
42
+ width: 100%;
43
+ padding: 20px;
44
+ }
45
+
46
+ .title-container {
47
+ display: flex;
48
+ flex-direction: column;
49
+ justify-content: center;
50
+ align-items: center;
51
+ padding: 1em;
52
+ border-radius: 10px;
53
+ }
54
+
55
+ .title {
56
+ font-size: 3em;
57
+ font-family: 'Montserrat', sans-serif;
58
+ text-align: center;
59
+ font-weight: bold;
60
+ }
61
+
62
+ .title span {
63
+ background: -webkit-linear-gradient(45deg, #0077b6, #00b4d8, #90e0ef);
64
+ -webkit-background-clip: text;
65
+ -webkit-text-fill-color: transparent;
66
+ }
67
+
68
+ .gallery {
69
+ display: grid;
70
+ grid-template-columns: repeat(5, 1fr);
71
+ gap: 10px;
72
+ }
73
+
74
+ .gallery img {
75
+ width: 100%;
76
+ height: auto;
77
+ margin-top: 0px;
78
+ margin-bottom: 0px;
79
+ border-radius: 10px;
80
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
81
+ transition: transform 0.3s;
82
+ }
83
+
84
+ .gallery img:hover {
85
+ transform: scale(1.05);
86
+ }
87
+
88
+ .note {
89
+ font-size: 1em;
90
+ opacity: 50%;
91
+ text-align: center;
92
+ margin-top: 20px;
93
+ color: #555;
94
+ }
95
+
96
+ </style>
97
+
98
+ <div class="container">
99
+ <div class="title-container">
100
+ <div class="title"><span>Kivotos XL 2.0</span></div>
101
+ </div>
102
+ <div class="gallery">
103
+ <img src="https://huggingface.co/yodayo-ai/kivotos-xl-2.0/resolve/main/samples/sample-001.png" alt="Image 1">
104
+ <img src="https://huggingface.co/yodayo-ai/kivotos-xl-2.0/resolve/main/samples/sample-002.png" alt="Image 2">
105
+ <img src="https://huggingface.co/yodayo-ai/kivotos-xl-2.0/resolve/main/samples/sample-003.png" alt="Image 3">
106
+ <img src="https://huggingface.co/yodayo-ai/kivotos-xl-2.0/resolve/main/samples/sample-004.png" alt="Image 4">
107
+ <img src="https://huggingface.co/yodayo-ai/kivotos-xl-2.0/resolve/main/samples/sample-005.png" alt="Image 5">
108
+ <img src="https://huggingface.co/yodayo-ai/kivotos-xl-2.0/resolve/main/samples/sample-006.png" alt="Image 6">
109
+ <img src="https://huggingface.co/yodayo-ai/kivotos-xl-2.0/resolve/main/samples/sample-007.png" alt="Image 7">
110
+ <img src="https://huggingface.co/yodayo-ai/kivotos-xl-2.0/resolve/main/samples/sample-008.png" alt="Image 8">
111
+ <img src="https://huggingface.co/yodayo-ai/kivotos-xl-2.0/resolve/main/samples/sample-009.png" alt="Image 9">
112
+ <img src="https://huggingface.co/yodayo-ai/kivotos-xl-2.0/resolve/main/samples/sample-010.png" alt="Image 10">
113
+ </div>
114
+ <div class="note">
115
+ Drag and drop each image to <a href="https://huggingface.co/spaces/Linaqruf/pnginfo" target="_blank">this link</a> or use ComfyUI to get the metadata.
116
+ </div>
117
+ </div>
118
+
119
+ ## Overview
120
+
121
+ **Kivotos XL 2.0** is the latest version of the [Yodayo Kivotos XL](https://yodayo.com/models/ee3c3839-e723-45f5-9151-18b592bc93b9) series, following the previous iteration, [Kivotos XL 1.0](https://yodayo.com/models/ee3c3839-e723-45f5-9151-18b592bc93b9/?modelversion=bf0091c7-4337-4edb-8c34-160d647d249a). This open-source model is built upon Animagine XL V3, a specialized SDXL model designed for generating high-quality anime-style artwork. Kivotos XL V2.0 has undergone additional fine-tuning and optimization to focus specifically on generating images that accurately represent the visual style and aesthetics of the Blue Archive franchise.
122
+
123
+ ## Model Details
124
+ - **Developed by**: [Yodayo AI](https://yodayo.com)
125
+ - **Model type**: Diffusion-based text-to-image generative model
126
+ - **Model Description**: Kivotos XL V2.0, the latest in the Yodayo Kivotos XL series, is an open-source model built on Animagine XL V3. Fine-tuned for high-quality Blue Archive anime-style art generation.
127
+ - **License**: [Fair AI Public License 1.0-SD](https://freedevproject.org/faipl-1.0-sd/)
128
+ - **Finetuned from model**: [Animagine XL 3.1](https://huggingface.co/cagliostrolab/animagine-xl-3.1)
129
+
130
+ ## Suoported Platform
131
+ 1. Use this model in our platform: [![Open In Spaces](https://img.shields.io/badge/Generate%20in%20Yodayo-141414?style=for-the-badge&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAGtUExURf/J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7Oru6cUpDXUpwxAEACsWOLO6J6SrAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDI0LTAyLTEyVDEwOjQzOjU3KzAwOjAwbykEPgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyNC0wMi0xMlQxMDo0Mzo1NyswMDowMB50vIIAAAAASUVORK5CYII=)](https://yodayo.com/models/ee3c3839-e723-45f5-9151-18b592bc93b9)
132
+ 2. Use it in [`ComfyUI`](https://github.com/comfyanonymous/ComfyUI) or [`Stable Diffusion Webui`](https://github.com/AUTOMATIC1111/stable-diffusion-webui)
133
+ 3. Use it with 🧨 `diffusers`
134
+
135
+ ## 🧨 Diffusers Installation
136
+
137
+ First install the required libraries:
138
+
139
+ ```bash
140
+ pip install diffusers transformers accelerate safetensors --upgrade
141
+ ```
142
+
143
+ Then run image generation with the following example code:
144
+
145
+ ```python
146
+ import torch
147
+ from diffusers import StableDiffusionXLPipeline
148
+
149
+ pipe = StableDiffusionXLPipeline.from_pretrained(
150
+ "yodayo-ai/kivotos-xl-2.0",
151
+ torch_dtype=torch.float16,
152
+ use_safetensors=True,
153
+ custom_pipeline="lpw_stable_diffusion_xl",
154
+ add_watermarker=False,
155
+ variant="fp16"
156
+ )
157
+ pipe.to('cuda')
158
+
159
+ prompt = "1girl, kazusa \(blue archive\), blue archive, solo, upper body, v, smile, looking at viewer, outdoors, night, masterpiece, best quality, very aesthetic, absurdres"
160
+ negative_prompt = "nsfw, (low quality, worst quality:1.2), very displeasing, 3d, watermark, signature, ugly, poorly drawn"
161
+
162
+ image = pipe(
163
+ prompt,
164
+ negative_prompt=negative_prompt,
165
+ width=832,
166
+ height=1216,
167
+ guidance_scale=7,
168
+ num_inference_steps=28
169
+ ).images[0]
170
+
171
+ image.save("./cat.png")
172
+ ```
173
+
174
+ ## Usage Guidelines
175
+
176
+ ### Tag Ordering
177
+
178
+ For optimal results, it's recommended to follow the structured prompt template because we train the model like this:
179
+
180
+ ```
181
+ 1girl/1boy, character name, from which series, by which artists, everything else in any order.
182
+ ```
183
+
184
+ ### Special Tags
185
+
186
+ Kivotos XL 2.0 inherits special tags from Animagine XL 3.1 to enhance image generation by steering results toward quality, rating, creation date, and aesthetic. This inheritance ensures that Kivotos XL 2.0 can produce high-quality, relevant, and aesthetically pleasing images. While the model can generate images without these tags, using them helps achieve better results.
187
+
188
+ - **Quality tags**: masterpiece, best quality, great quality, good quality, normal quality, low quality, worst quality
189
+ - **Rating tags**: safe, sensitive, nsfw, explicit
190
+ - **Year tags**: newest, recent, mid, early, oldest
191
+ - **Aesthetic tags**: very aesthetic, aesthetic, displeasing, very displeasing
192
+
193
+ ### Recommended Settings
194
+
195
+ To guide the model towards generating high-aesthetic images, use the following recommended settings:
196
+
197
+ - **Negative prompts**:
198
+ ```
199
+ nsfw, (low quality, worst quality:1.2), very displeasing, 3d, watermark, signature, ugly, poorly drawn
200
+ ```
201
+ - **Positive prompts**:
202
+ ```
203
+ masterpiece, best quality, very aesthetic, absurdres
204
+ ```
205
+ - **Classifier-Free Guidance (CFG) Scale**: should be around 5 to 7; 10 is fried, >12 is deep-fried.
206
+ - **Sampling steps**: should be around 25 to 30; 28 is the sweet spot.
207
+ - **Sampler**: Euler Ancestral (Euler a) is highly recommended.
208
+ - **Supported resolutions**:
209
+ ```
210
+ 1024 x 1024, 1152 x 896, 896 x 1152, 1216 x 832, 832 x 1216, 1344 x 768, 768 x 1344, 1536 x 640, 640 x 1536
211
+ ```
212
+
213
+ ## Training
214
+
215
+ These are the key hyperparameters used during training:
216
+
217
+ | Feature | Pretraining | Finetuning |
218
+ |-------------------------------|----------------------------|---------------------------------|
219
+ | **Hardware** | 2x H100 80GB PCIe | 1x A100 80GB PCIe |
220
+ | **Batch Size** | 64 | 48 |
221
+ | **Gradient Accumulation Steps** | 2 | 1 |
222
+ | **Noise Offset** | None | 0.0357 |
223
+ | **Epochs** | 10 | 10 |
224
+ | **UNet Learning Rate** | 5e-6 | 3.75e-6 |
225
+ | **Text Encoder Learning Rate** | 2.5e-6 | None |
226
+ | **Optimizer** | AdamW8bit | Adafactor |
227
+ | **Optimizer Args** | Weight Decay: 0.1, Betas: (0.9, 0.99) | Scale Parameter: False, Relative Step: False, Warmup Init: False |
228
+ | **Scheduler** | Constant with Warmups | Constant with Warmups |
229
+ | **Warmup Steps** | 0.5% | 0.5% |
230
+
231
+ ## License
232
+
233
+ Kivotos XL 2.0 falls under [Fair AI Public License 1.0-SD](https://freedevproject.org/faipl-1.0-sd/) license, which is compatible with Stable Diffusion models’ license. Key points:
234
+
235
+ 1. **Modification Sharing:** If you modify Kivotos XL 2.0, you must share both your changes and the original license.
236
+ 2. **Source Code Accessibility:** If your modified version is network-accessible, provide a way (like a download link) for others to get the source code. This applies to derived models too.
237
+ 3. **Distribution Terms:** Any distribution must be under this license or another with similar rules.