ai-forever/ru-dalle

★ 1,642⑂ 242

Generate images from texts. In Russian

About ai-forever/ru-dalle

ai-forever/ru-dalle is an open-source project on GitHub, mainly written in Jupyter Notebook. Generate images from texts. In Russian It currently holds 1,642 stars and 242 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the AI Image Projects board and on the AI AI Image Projects list.

GitHub Repository Details

Repository ai-forever/ru-dalle · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

ruDALL-E

Generate images from texts

Apache license Downloads Coverage Status pipeline pre-commit.ci status

pip install rudalle==1.1.3

🤗 HF Models:

ruDALL-E Malevich (XL) \ ruDALL-E Emojich (XL) (readme here) \ ruDALL-E Surrealist (XL) \ ruDALL-E Kandinsky (XXL) (soon)

Minimal Example:

Open In Colab Kaggle Hugging Face Spaces

Example usage ruDALL-E Malevich (XL) with 3.5GB vRAM! Open In Colab

Finetuning example Open In Colab

generation by ruDALLE:

import ruclip
from rudalle.pipelines import generate_images, show, super_resolution, cherry_pick_by_ruclip
from rudalle import get_rudalle_model, get_tokenizer, get_vae, get_realesrgan
from rudalle.utils import seed_everything

prepare models:

device = 'cuda' dalle = get_rudalle_model('Malevich', pretrained=True, fp16=True, device=device) tokenizer = get_tokenizer() vae = get_vae(dwt=True).to(device)

pipeline utils:

realesrgan = get_realesrgan('x2', device=device) clip, processor = ruclip.load('ruclip-vit-base-patch32-384', device=device) clip_predictor = ruclip.Predictor(clip, processor, device, bs=8) text = 'радуга на фоне ночного города'

seed_everything(42) pil_images = [] scores = [] for top_k, top_p, images_num in [ (2048, 0.995, 24), ]: _pil_images, _scores = generate_images(text, tokenizer, dalle, vae, top_k=top_k, images_num=images_num, bs=8, top_p=top_p) pil_images += _pil_images scores += _scores

show(pil_images, 6)

auto cherry-pick by ruCLIP:

top_images, clip_scores = cherry_pick_by_ruclip(pil_images, text, clip_predictor, count=6)
show(top_images, 3)

super resolution:

sr_images = super_resolution(top_images, realesrgan)
show(sr_images, 3)

text, seed = 'красивая тян из аниме', 6955

Image Prompt

see jupyters/ruDALLE-image-prompts-A100.ipynb
text, seed = 'Храм Василия Блаженного', 42
skyes = [red_sky, sunny_sky, cloudy_sky, night_sky]

VideoDALL-E | ruCogVideo by @cene555

Video generation example Open In Colab Finetuning example Open In Colab

Aspect ratio images -->NEW<--

Kandinsky 12B

Request access: Here

роботы акварелью в стиле ван гога

FID = 15.4 (COCO Valid)

🚀 Contributors 🚀

Supported by

Social Media

GitHub Stars & Activity

1,642Stars
242Forks
0Open issues
Jupyter NotebookLanguage

GitHub Popularity

GitHub stars1,642
Forks242
Open issues0
Primary languageJupyter Notebook
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

spmallick / learnopencv

Jupyter Notebook★ 23,157⑂ 11,658
2

NVIDIA / DeepLearningExamples

Jupyter Notebook★ 14,847⑂ 3,407
3

advimman / lama

Jupyter Notebook★ 10,268⑂ 1,081
4

microsoft / computervision-recipes

Jupyter Notebook★ 9,887⑂ 1,205
5

XavierXiao / Dreambooth-Stable-Diffusion

Jupyter Notebook★ 7,732⑂ 795
6

open-mmlab / mmagic

Jupyter Notebook★ 7,466⑂ 1,097
7

ai-forever / Kandinsky-2

Jupyter Notebook★ 2,812⑂ 319
8

YangLing0818 / RPG-DiffusionMaster

Jupyter Notebook★ 1,844⑂ 100

More AI Rankings