sberbank-ai
commited on
Commit
·
9a493bb
1
Parent(s):
877c453
Update README.md
Browse files
README.md
CHANGED
|
@@ -26,6 +26,16 @@ These encoders and multilingual training datasets unveil the real multilingual t
|
|
| 26 |
|
| 27 |

|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
# Authors
|
| 30 |
|
| 31 |
+ Arseniy Shakhmatov: [Github](https://github.com/cene555), [Blog](https://t.me/gradientdip)
|
|
|
|
| 26 |
|
| 27 |

|
| 28 |
|
| 29 |
+
# How to use
|
| 30 |
+
|
| 31 |
+
```
|
| 32 |
+
pip install "git+https://github.com/ai-forever/Kandinsky-2.0.git"
|
| 33 |
+
|
| 34 |
+
from kandinsky2 import get_kandinsky2
|
| 35 |
+
model = get_kandinsky2('cuda', task_type='text2img')
|
| 36 |
+
images = model.generate_text2img('кошка в космосе', 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.01, guidance_scale=10)
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
# Authors
|
| 40 |
|
| 41 |
+ Arseniy Shakhmatov: [Github](https://github.com/cene555), [Blog](https://t.me/gradientdip)
|