<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rudra on Medium]]></title>
        <description><![CDATA[Stories by Rudra on Medium]]></description>
        <link>https://medium.com/@rudrkadam?source=rss-2b4fd42fbda9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*2_ioMPOAzXaNpkYIzLtYxw.jpeg</url>
            <title>Stories by Rudra on Medium</title>
            <link>https://medium.com/@rudrkadam?source=rss-2b4fd42fbda9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 23:03:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rudrkadam/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Rise of AI Text-to-Image Generator Models]]></title>
            <link>https://rudrkadam.medium.com/rise-of-ai-text-to-image-generator-models-d2e728cedc67?source=rss-2b4fd42fbda9------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2e728cedc67</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[dall-e-2]]></category>
            <category><![CDATA[text-to-image-generation]]></category>
            <category><![CDATA[midjourney]]></category>
            <dc:creator><![CDATA[Rudra]]></dc:creator>
            <pubDate>Thu, 08 Dec 2022 23:12:26 GMT</pubDate>
            <atom:updated>2022-12-09T05:26:13.933Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ugqDVFSyiDfGDfWdGiFVNg.png" /><figcaption>“BoJack Horseman and Diane Nguyen, sitting on the roof, at night, pixel art” prompt given to DALL-E</figcaption></figure><p>Mankind has come a long way since we discovered the power of computation and computers. The first computer human created occupied the space of a whole room. Now our computers sit on our laps and in our pockets. This physical size is decreasing even more. Nowadays, the computational power is lying in the Cloud. Access, compute, and analyze anything from anywhere or on any physical device. And with these advancements in technology has emerged a new term “<strong>Artificial Intelligence</strong>”.</p><h3>What is AI?</h3><p>Oxford English Dictionary defines AI as “<em>the theory and development of computer systems able to perform tasks that normally require human intelligence, such as visual perception, speech recognition, decision-making, and translation between languages</em>”.</p><p>Back in 2015, one of the major development in AI research was the ability to automatically caption an image. Machine learning algorithms could label objects and faces in images. And then they learnt to put those labels into natural language descriptions. This sparked the curiosity of one group of researchers, that what if this process is flipped around. “We can do image-to-text, why not try text-to-image as well?” A 2016 paper from those researchers showed the potential for what might become possible in the future.</p><p>And, the future has arrived.</p><p>Well, AI-generated images aren’t new. There are a plenty of datasets and models which specialize in AI-generation of landscapes or portraits. But generating a scene from any combination of words, required a different, newer, and bigger approach.</p><p>Now we have these huge models, which are so huge that someone can’t train them anymore on their own computer.</p><p>In January of 2021, OpenAI announced <strong>DALL-E</strong>. Recently OpenAI announced DALL-E 2, which promises more realistic results, seamless editing, and even features like expanding the background of an already existing image or painting. Over the past year, a community of independent, open-source developers built text-to-image generators out of other pre-trained models that they did have access to. Some of those developers are now working for a company called <strong>Midjourney</strong>, which created a Discord community with bots that turn your text into images in less than a minute.</p><h3>Working of these models</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*09a_TahrYUfFJSGpoQxE1Q.png" /><figcaption>Working of these AI text-to-image generating models</figcaption></figure><p>For an image generator to be able to respond to so many different prompts, it needs a gigantically massive and diverse training dataset. Like thousands of millions of images scraped from the internet, along with their text descriptions. Those captions come from things like the alt text and image descriptions website owners upload with their images, for accessibility and for search engine indexing.</p><p>That’s how these giant datasets are created. But then what? What do these models actually do with these datasets? We might think that when we give them a text prompt, like “<em>a man sleeping inside a cottage covered in snow</em>”, they search through the training data to find related images and then copy over those image pixels that are required. But that’s not how these models work. The new generated image does not come from the datasets, but it comes from what is known as a “latent space” of the deep learning model.</p><p>In order to understand that one arrangement of pixels is a specific object, and an another arrangement of pixels is an another specific object, it looks for metrics that help separate these images in mathematical space. Color, roundness, shininess, etc. This is what deep learning algorithms do as they go through all the training data. They find variables that help improve their performance on the task and in the process, they build out a mathematical space with way more than 3 dimensions. We humans are incapable of picturing multidimensional space. So we’ll say some 800 dimension variable space represents the latent space of a particular model.</p><p>Those 800 axes represent variables that humans wouldn’t even recognize or have names for but the result is that the space has meaningful clusters:<br>• A region that captures the essence of human-ness.<br>• A region that represents the textures and colors of a cottage that is covered in snow.<br>• An area for furniture that is present inside a cold cottage.</p><p>Any point in this space can be thought of as the recipe for a possible image. The text prompt is what navigates us to that particular location.</p><p>But it does not end there. There’s one more step. Translating a point in that mathematical space into an actual image involves a generative process called diffusion. It starts with just noise and then, over a series of iterations, it arranges pixels into a kind of composition that makes sense to humans. Because of randomness in these processes, it will never return exactly the same image for the same prompt. And if you enter the prompt into a different model designed by different people and trained on different datasets, you’ll get a different result. Because you’re in a completely different latent space.</p><h3>Problems with these models as of now</h3><p>The ability of deep learning to extract patterns from data means that one can copy an artist’s style without copying their images, just by putting their name in the text prompt. The artists should be allowed to opt in or opt out of having their work to be used as a dataset for creating this other AI-generated artwork. The copyright questions regarding the images that go into training these models and the images that come out of them… are completely unresolved.</p><p>And those aren’t the only questions that this technology will provoke. The latent space of these models contains some dark corners of the internet that get scarier as outputs become even more photorealistic.</p><h3>The Future</h3><p>The future of this already amazing technology holds very promising.</p><p>The people developing these models are actively trying to tackle the problems mentioned above by restricting and training the AI accordingly.</p><p>Recently <a href="https://www.theverge.com/2022/11/3/23438604/text-to-image-ai-openai-dall-e-api-public-beta-price">OpenAI released API for DALL-E </a>for individuals and companies to integrate it into their products. Microsoft is already using this in their upcoming Designer app. Companies like Meta and Google are working on their AI text-to-video generation models. All of these advancements point to these models becoming very much mainstream in the near future.</p><p><em>References &amp; Citations:<br>• Vox article and video on “</em><a href="https://www.vox.com/23150422/text-to-image-ai-deep-learning"><em>The text-to-image revolution, explained</em></a><em>”<br>• The Verge article “</em><a href="https://www.theverge.com/2022/11/3/23438604/text-to-image-ai-openai-dall-e-api-public-beta-price"><em>OpenAI opens up AI text-to-image generation to businesses with launch of DALL-E API</em></a><em>”</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2e728cedc67" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>