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 |
+
|
2 |
+
import gradio as gr
|
3 |
+
import torch
|
4 |
+
from torch import autocast
|
5 |
+
from kandinsky2 import get_kandinsky2
|
6 |
+
|
7 |
+
#model_id = "hakurei/waifu-diffusion"
|
8 |
+
model = get_kandinsky2('cuda', task_type='text2img')
|
9 |
+
|
10 |
+
#torch.backends.cudnn.benchmark = True
|
11 |
+
|
12 |
+
|
13 |
+
def infer(prompt):
|
14 |
+
images = model.generate_text2img('A teddy bear на красной площади', batch_size=4, h=512, w=512, num_steps=75, denoised_type='dynamic_threshold', dynamic_threshold_v=99.5, sampler='ddim_sampler', ddim_eta=0.05, guidance_scale=10)
|
15 |
+
return images
|
16 |
+
|
17 |
+
css = """
|
18 |
+
.gradio-container {
|
19 |
+
font-family: 'IBM Plex Sans', sans-serif;
|
20 |
+
}
|
21 |
+
.gr-button {
|
22 |
+
color: white;
|
23 |
+
border-color: black;
|
24 |
+
background: black;
|
25 |
+
}
|
26 |
+
input[type='range'] {
|
27 |
+
accent-color: black;
|
28 |
+
}
|
29 |
+
.dark input[type='range'] {
|
30 |
+
accent-color: #dfdfdf;
|
31 |
+
}
|
32 |
+
.container {
|
33 |
+
max-width: 730px;
|
34 |
+
margin: auto;
|
35 |
+
padding-top: 1.5rem;
|
36 |
+
}
|
37 |
+
#gallery {
|
38 |
+
min-height: 22rem;
|
39 |
+
margin-bottom: 15px;
|
40 |
+
margin-left: auto;
|
41 |
+
margin-right: auto;
|
42 |
+
border-bottom-right-radius: .5rem !important;
|
43 |
+
border-bottom-left-radius: .5rem !important;
|
44 |
+
}
|
45 |
+
#gallery>div>.h-full {
|
46 |
+
min-height: 20rem;
|
47 |
+
}
|
48 |
+
.details:hover {
|
49 |
+
text-decoration: underline;
|
50 |
+
}
|
51 |
+
.gr-button {
|
52 |
+
white-space: nowrap;
|
53 |
+
}
|
54 |
+
.gr-button:focus {
|
55 |
+
border-color: rgb(147 197 253 / var(--tw-border-opacity));
|
56 |
+
outline: none;
|
57 |
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
58 |
+
--tw-border-opacity: 1;
|
59 |
+
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
60 |
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px var(--tw-ring-offset-width)) var(--tw-ring-color);
|
61 |
+
--tw-ring-color: rgb(191 219 254 / var(--tw-ring-opacity));
|
62 |
+
--tw-ring-opacity: .5;
|
63 |
+
}
|
64 |
+
#advanced-btn {
|
65 |
+
font-size: .7rem !important;
|
66 |
+
line-height: 19px;
|
67 |
+
margin-top: 12px;
|
68 |
+
margin-bottom: 12px;
|
69 |
+
padding: 2px 8px;
|
70 |
+
border-radius: 14px !important;
|
71 |
+
}
|
72 |
+
#advanced-options {
|
73 |
+
display: none;
|
74 |
+
margin-bottom: 20px;
|
75 |
+
}
|
76 |
+
.footer {
|
77 |
+
margin-bottom: 45px;
|
78 |
+
margin-top: 35px;
|
79 |
+
text-align: center;
|
80 |
+
border-bottom: 1px solid #e5e5e5;
|
81 |
+
}
|
82 |
+
.footer>p {
|
83 |
+
font-size: .8rem;
|
84 |
+
display: inline-block;
|
85 |
+
padding: 0 10px;
|
86 |
+
transform: translateY(10px);
|
87 |
+
background: white;
|
88 |
+
}
|
89 |
+
.dark .footer {
|
90 |
+
border-color: #303030;
|
91 |
+
}
|
92 |
+
.dark .footer>p {
|
93 |
+
background: #0b0f19;
|
94 |
+
}
|
95 |
+
.acknowledgments h4{
|
96 |
+
margin: 1.25em 0 .25em 0;
|
97 |
+
font-weight: bold;
|
98 |
+
font-size: 115%;
|
99 |
+
}
|
100 |
+
#container-advanced-btns{
|
101 |
+
display: flex;
|
102 |
+
flex-wrap: wrap;
|
103 |
+
justify-content: space-between;
|
104 |
+
align-items: center;
|
105 |
+
}
|
106 |
+
.animate-spin {
|
107 |
+
animation: spin 1s linear infinite;
|
108 |
+
}
|
109 |
+
@keyframes spin {
|
110 |
+
from {
|
111 |
+
transform: rotate(0deg);
|
112 |
+
}
|
113 |
+
to {
|
114 |
+
transform: rotate(360deg);
|
115 |
+
}
|
116 |
+
}
|
117 |
+
#share-btn-container {
|
118 |
+
display: flex; padding-left: 0.5rem !important; padding-right: 0.5rem !important; background-color: #000000; justify-content: center; align-items: center; border-radius: 9999px !important; width: 13rem;
|
119 |
+
}
|
120 |
+
#share-btn {
|
121 |
+
all: initial; color: #ffffff;font-weight: 600; cursor:pointer; font-family: 'IBM Plex Sans', sans-serif; margin-left: 0.5rem !important; padding-top: 0.25rem !important; padding-bottom: 0.25rem !important;
|
122 |
+
}
|
123 |
+
#share-btn * {
|
124 |
+
all: unset;
|
125 |
+
}
|
126 |
+
.gr-form{
|
127 |
+
flex: 1 1 50%; border-top-right-radius: 0; border-bottom-right-radius: 0;
|
128 |
+
}
|
129 |
+
#prompt-container{
|
130 |
+
gap: 0;
|
131 |
+
}
|
132 |
+
#generated_id{
|
133 |
+
min-height: 700px
|
134 |
+
}
|
135 |
+
"""
|
136 |
+
block = gr.Blocks(css=css)
|
137 |
+
|
138 |
+
examples = [
|
139 |
+
[
|
140 |
+
'Красная площадь'
|
141 |
+
],
|
142 |
+
[
|
143 |
+
'Thinking man in anime style'
|
144 |
+
],
|
145 |
+
[
|
146 |
+
'אבוקדו'
|
147 |
+
],
|
148 |
+
]
|
149 |
+
|
150 |
+
with block as demo:
|
151 |
+
gr.HTML(
|
152 |
+
"""
|
153 |
+
<div style="text-align: center; max-width: 650px; margin: 0 auto;">
|
154 |
+
<div
|
155 |
+
style="
|
156 |
+
display: inline-flex;
|
157 |
+
align-items: center;
|
158 |
+
gap: 0.8rem;
|
159 |
+
font-size: 1.75rem;
|
160 |
+
"
|
161 |
+
>
|
162 |
+
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAANeElEQVRYhY1Ye4xc1X3+zjn33Oc8dmdmZ5+zttfrZ/wIDmA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fuw1BK02VEtNbLRcnDECwjncig9nQaZdZmE9MBmbFPCyjymUrZNcqlEJklKoATD902eRHR2BZhhvraxVH1pZq66/e3kfUOiHlzUtU9z+gf77gzA8tLa6gnOvnIShKrBUA0G83j8YYVLBJkAEXV9IBngxSGiMQ2U82W7Sor//gkKec01D891ZrM6X66Vd2x6W7wUu+Q8A/w+34pKwK2kanwAAAABJRU5ErkJggg==" />
|
163 |
+
<h1 style="font-weight: 900; margin-bottom: 7px;">
|
164 |
+
Kandinskiy2.0 Demo
|
165 |
+
</h1>
|
166 |
+
</div>
|
167 |
+
<p style="margin-bottom: 10px; font-size: 94%">
|
168 |
+
# Kandinsky 2.0
|
169 |
+
|
170 |
+
[![Framework: PyTorch](https://img.shields.io/badge/Framework-PyTorch-orange.svg)](https://pytorch.org/) [![Huggingface space](https://img.shields.io/badge/🤗-Huggingface-yello.svg)](https://huggingface.co/sberbank-ai/Kandinsky_2.0)
|
171 |
+
|
172 |
+
`pip install "git+https://github.com/ai-forever/Kandinsky-2.0.git"`
|
173 |
+
|
174 |
+
## Model architecture:
|
175 |
+
|
176 |
+
It is a latent diffusion model with two multilingual text encoders:
|
177 |
+
* mCLIP-XLMR 560M parameters
|
178 |
+
* mT5-encoder-small 146M parameters
|
179 |
+
|
180 |
+
These encoders and multilingual training datasets unveil the real multilingual text-to-image generation experience!
|
181 |
+
|
182 |
+
**Kandinsky 2.0** was trained on a large 1B multilingual set, including samples that we used to train Kandinsky.
|
183 |
+
|
184 |
+
In terms of diffusion architecture Kandinsky 2.0 implements UNet with 1.2B parameters.
|
185 |
+
|
186 |
+
**Kandinsky 2.0** architecture overview:
|
187 |
+
</p>
|
188 |
+
</div>
|
189 |
+
"""
|
190 |
+
)
|
191 |
+
with gr.Group():
|
192 |
+
with gr.Box():
|
193 |
+
with gr.Row().style(mobile_collapse=False, equal_height=True):
|
194 |
+
|
195 |
+
text = gr.Textbox(
|
196 |
+
label="Enter your prompt", show_label=False, max_lines=1
|
197 |
+
).style(
|
198 |
+
border=(True, False, True, True),
|
199 |
+
rounded=(True, False, False, True),
|
200 |
+
container=False,
|
201 |
+
)
|
202 |
+
btn = gr.Button("Run").style(
|
203 |
+
margin=False,
|
204 |
+
rounded=(False, True, True, False),
|
205 |
+
)
|
206 |
+
|
207 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, elem_id="generated_id").style(
|
208 |
+
grid=[2], height="auto"
|
209 |
+
)
|
210 |
+
|
211 |
+
ex = gr.Examples(examples=examples, fn=infer, inputs=[text], outputs=gallery, cache_examples=True)
|
212 |
+
ex.dataset.headers = [""]
|
213 |
+
|
214 |
+
text.submit(infer, inputs=[text], outputs=gallery)
|
215 |
+
btn.click(infer, inputs=[text], outputs=gallery)
|
216 |
+
|
217 |
+
gr.HTML(
|
218 |
+
"""
|
219 |
+
<div class="footer">
|
220 |
+
<p>Stable Diffusion model fine-tuned on 56K anime image board images by <a href="https://huggingface.co/hakurei" style="text-decoration: underline;" target="_blank">hakurei</a>
|
221 |
+
</p>
|
222 |
+
</div>
|
223 |
+
<div class="acknowledgments">
|
224 |
+
<p><h4>LICENSE</h4>
|
225 |
+
The model is licensed with a <a href="https://huggingface.co/spaces/CompVis/stable-diffusion-license" style="text-decoration: underline;" target="_blank">CreativeML Open RAIL-M</a> license. The authors claim no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in this license. The license forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm, spread misinformation and target vulnerable groups. For the full list of restrictions please <a href="https://huggingface.co/spaces/CompVis/stable-diffusion-license" target="_blank" style="text-decoration: underline;" target="_blank">read the license</a></p>
|
226 |
+
<p><h4>Biases and content acknowledgment</h4>
|
227 |
+
Despite how impressive being able to turn text into image is, beware to the fact that this model may output content that reinforces or exacerbates societal biases, as well as realistic faces, pornography and violence. The model was trained on the <a href="https://laion.ai/blog/laion-5b/" style="text-decoration: underline;" target="_blank">LAION-5B dataset</a>, which scraped non-curated image-text-pairs from the internet (the exception being the removal of illegal content) and is meant for research purposes. You can read more in the <a href="https://huggingface.co/CompVis/stable-diffusion-v1-4" style="text-decoration: underline;" target="_blank">model card</a></p>
|
228 |
+
</div>
|
229 |
+
"""
|
230 |
+
)
|
231 |
+
demo.queue(max_size=25).launch()
|