kandinsky-3 / README.md
Cene655's picture
Update README.md
ecf2806
|
raw
history blame
No virus
4.71 kB
metadata
license: apache-2.0

Kandinsky-3: Text-to-image diffusion model

Post | Generate | Telegram-bot | [Report]

Description:

Kandinsky 3.0 is an open-source text-to-image diffusion model built upon the Kandinsky2-x model family. In comparison to its predecessors, Kandinsky 3.0 incorporates more data and specifically related to Russian culture, which allows to generate pictures related to Russin culture. Furthermore, enhancements have been made to the text understanding and visual quality of the model, achieved by increasing the size of the text encoder and Diffusion U-Net models, respectively.

For more information: details of training, example of generations check out our post. The english version will be released in a couple of days.

Architecture details:

Architecture consists of three parts:

  • Text encoder Flan-UL2 (encoder part) - 8.6B
  • Latent Diffusion U-Net - 3B
  • MoVQ encoder/decoder - 267M

Models

We release our two models:

  • Base: Base text-to-image diffusion model. This model was trained over 2M steps on 400 A100
  • Inpainting: Inpainting version of the model. The model was initialized from final checkpoint of base model and trained 250k steps on 300 A100.

Installing

To install repo first one need to create conda environment:

pip install git+https://github.com/ai-forever/diffusers_kandinsky3.git

The exact dependencies is got using pip freeze and can be found in exact_requirements.txt

How to use:

Check our jupyter notebooks with examples in ./examples folder

1. text2image

from diffusers import KandinskyV3Pipeline
import torch

pipe = KandinskyV3Img2ImgPipeline.from_pretrained('kandinsky-community/kandinsky-3', torch_dtype=torch.float16)
pipe = pipe.to('cuda')

image = pipe("A cute corgi lives in a house made out of sushi.")

Examples of generations


"A beautiful landscape outdoors scene in the crochet knitting art style, drawing in style by Alfons Mucha" "gorgeous phoenix, cosmic, darkness, epic, cinematic, moonlight, stars, high - definition, texture,Oscar-Claude Monet" "a yellow house at the edge of the danish fjord, in the style of eiko ojala, ingrid baars, ad posters, mountainous vistas, george ault, realistic details, dark white and dark gray, 4k" "dragon fruit head, upper body, realistic, illustration by Joshua Hoffine Norman Rockwell, scary, creepy, biohacking, futurism, Zaha Hadid style"
"Amazing playful nice cute strawberry character, dynamic poze, surreal fantazy garden background, gorgeous masterpice, award winning photo, soft natural lighting, 3d, Blender, Octane render, tilt - shift, deep field, colorful, I can't believe how beautiful this is, colorful, cute and sweet baby - loved photo" "beautiful fairy-tale desert, in the sky a wave of sand merges with the milky way, stars, cosmism, digital art, 8k" "Car, mustang, movie, person, poster, car cover, person, in the style of alessandro gottardo, gold and cyan, gerald harvey jones, reflections, highly detailed illustrations, industrial urban scenes"" "cloud in blue sky, a red lip, collage art, shuji terayama, dreamy objects, surreal, criterion collection, showa era, intricate details, mirror"

Authors