// image · ai-forever/Kandinsky-2

Kandinsky-2

Kandinsky-2 — проект с открытым исходным кодом из категории «Изображения» от ai-forever (ai-forever/Kandinsky-2 на GitHub). У него 2 810 звёзд на GitHub и 319 форков, он распространяется по лицензии Apache-2.0 и последний раз обновлялся на GitHub 1 мая 2024.

Kandinsky 2.2 — multilingual text-to-image latent diffusion with ControlNet, inpainting and image fusion

★ 2,8 тыс. звёзд⑂ 319 форковApache-2.0обновлено май 2024
▦ визуал — в README этого проекта нет встраиваемого скриншота,
поэтому здесь заглушка. Руководство ниже в любом случае полное.
// факты о проекте

Факты о проекте

Репозиторий
ai-forever/Kandinsky-2
Звёзды GitHub
2 810
Форки
319
Лицензия
Apache-2.0
Последнее обновление на GitHub
1 мая 2024
Категория
Изображения
Тип страницы
Полное руководство по установке
// как это работает

Как это работает

  1. Clarify your goal

    Pick the task — text2image, img2img, inpainting or image fusion — and the model version (2.2 is the newest in the repo).

  2. Get Kandinsky

    Clone the repo or pip install it directly from GitHub as the README shows; model checkpoints download from Hugging Face.

  3. Install and configure

    Set up a CUDA environment (examples call get_kandinsky2('cuda', ...)) and open the example notebooks in ./notebooks.

  4. Run your first generation

    Call generate_text2img with a prompt — prompts can be multilingual — and inspect the output image.

// возможности

Почему его любят

Multilingual prompts

Trained with multilingual text encoders (XLM-Roberta-based), so prompts work in many languages, not just English.

Kandinsky 2.2 encoder

2.2 switches to the CLIP-ViT-G image encoder for more aesthetic results and better text understanding.

ControlNet support

2.2 adds ControlNet (e.g. depth-conditioned decoding) for more controllable generation.

Inpainting and outpainting

Dedicated inpainting checkpoint and generate_inpainting API with masks.

Image fusion

mix_images blends multiple images and text prompts with per-input weights.

LoRA fine-tuning

A linked Colab notebook shows fine-tuning with LoRA, alongside an inference Colab.

Advertisement
// запустите сами

Запустите сами

  1. Clone the repo

    Clone Kandinsky-2 and enter the directory.

    git clone https://github.com/ai-forever/Kandinsky-2.git
    cd Kandinsky-2
  2. Install the package

    Install directly from GitHub as the README shows.

    pip install "git+https://github.com/ai-forever/Kandinsky-2.git"
  3. Generate an image

    Use the README's text2image example with the 2.2 model on CUDA.

    from kandinsky2 import get_kandinsky2
    model = get_kandinsky2('cuda', task_type='text2img', model_version='2.2')
    images = model.generate_text2img("red cat, 4k photo", decoder_steps=50, batch_size=1, h=1024, w=768)
// сценарии использования

Что можно создать

Advertisement
// вопросы и ответы

Вопросы и ответы

Who maintains Kandinsky 2?

ai-forever (the team behind the Kandinsky models, originally from Sber AI research) maintains this repo; the authors are listed in the README.

Is it free?

The code is Apache-2.0 licensed; checkpoints are on Hugging Face. You need your own GPU hardware to run it.

Does it need a paid API key?

No — inference runs locally in PyTorch once checkpoints are downloaded.

How does it compare to Stable Diffusion?

Both are open latent-diffusion models. Kandinsky is distinguished by its multilingual text encoders, diffusion image prior design, and built-in image-fusion workflow.

How do I get started?

pip install it from GitHub, then run the text2image snippet or the linked Colab inference notebook.

// продолжить изучение

Похожие инструменты

Изображения

omnigen-vault

Infinite text-free AI image generator with a searchable multilingual vault

★ 35 звёздMIT
Смотреть руководство →
Изображения

mmagic

MMagic — OpenMMLab's generative-AI toolbox: diffusion, text-to-image, restoration and a model zoo.

★ 7,5 тыс. звёздApache-2.0
Смотреть руководство →
Изображения

stable-diffusion-videos

Create 🔥 videos with Stable Diffusion by exploring the latent space and morphing between text prompts

★ 4,7 тыс. звёздApache-2.0
Смотреть руководство →
Изображения

Image-AI-Generator-2026

Desktop AI art studio — photoreal renders, ControlNet and upscaling

★ 53 звездыMIT
Смотреть руководство →
Изображения

lite.ai.toolkit

A lite C++ AI toolkit: 100+ models with MNN, ORT and TRT, including Det, Seg, Stable-Diffusion, Face-Fusion.

★ 4,4 тыс. звёздGPL-3.0
Смотреть руководство →
Изображения

react-image-editor

Drop-in React image editor — crop, filters, draw, text and AI assistant

★ 255 звёздMIT
Смотреть руководство →
// альтернативы

Альтернативы: Изображения

Другие проекты из категории «Изображения» с наибольшим числом звёзд в каталоге LibreAI — реалистичный список альтернатив, если Kandinsky-2 вам не подходит.

// ещё в категории image

Больше проектов: Изображения

Соседние проекты из категории «Изображения» в каталоге, ближайшие по числу звёзд к Kandinsky-2 — продолжайте изучать полку по обе стороны от него.

Получить Kandinsky-2

Бесплатно и открыто — забирайте исходный код, ставьте звезду репозиторию и начинайте создавать.