We have discussed how to convert Google’s Artificial Intelligence Speech To Text in our previous post.

Today I am going to show you how to generate image from text. You can type any combination of words in the program and it will render an abstract Image after many iterations  Before giving the final output it creates hundreds of images and will proceed towards giving the final abstract image.

Open AI Library – Deep  Daze:

Simple command-line tool for text to image generation using OpenAI’s CLIP and Siren. This library can generate images, sound, anything at will, with natural languages.

What is CLIP?

CLIP (Contrastive Language–Image Pre-training) builds on a large body of work on zero-shot transfer, natural language supervision, and multimodal learning. The idea of zero-data learning dates back over a decade but until recently was mostly studied in computer vision as a way of generalizing to unseen object categories.

Source: CLIP

I have tried a couple of examples e-g “Tiger In The Forest” and “Christmas tree next to fireplace” and below are the final outcome of abstract images.

With more memory in your system, you can get better-quality images.

Run the below program and enter your own image description or you can go to Deep Daze GitHub and click Google Colab to load the code in its IDE.

Copy to Clipboard
Copy to Clipboard

Running Program

After many iterations, it was rendering different abstract images of ‘Tiger in the forest”.

1st image update start rendering
Rendering of Tiger Roar in 1st image
Rendering of Tiger Roar in 10th Image
Rendering of Tiger Roar in 50th Image
Rendering of Tiger Roar in 100th Image
Rendering of Tiger Roar in 200th Image
Rendering of Tiger Roar in 300th Image
Rendering of Tiger Roar in final Image

let’s try with one more example “christmas tree next to fireplace”.

Rendering of Christmas tree next to fireplace 1st image
Rendering of Christmas tree next to fireplace 10th image
Rendering of Christmas tree next to fireplace 50th image
Rendering of Christmas tree next to fireplace 100th image
Rendering of Christmas tree next to fireplace 150th image
Rendering of Christmas tree next to fireplace 200th image
Rendering of Christmas tree next to fireplace 250th image
Rendering of Christmas tree next to fireplace 300th image
Rendering of Christmas tree next to fireplace 391th and Final image

Conclusion:

Deep Daze library generates images, sound, anything at will, with natural language Artificial Intelligence.

Even a high-end graphics tool can take some time to generate these images.

Enjoy this library, thanks to this author/contributor and contribute to our Artificial Intelligence community.