{"id":1232452,"date":"2022-10-24T04:52:42","date_gmt":"2022-10-24T04:52:42","guid":{"rendered":"https:\/\/www.ghanamma.com\/2022\/10\/24\/this-curry-does-not-exist-it-was-made-by-ai\/"},"modified":"2022-10-24T04:52:42","modified_gmt":"2022-10-24T04:52:42","slug":"this-curry-does-not-exist-it-was-made-by-ai","status":"publish","type":"post","link":"https:\/\/www.ghanamma.com\/2022\/10\/24\/this-curry-does-not-exist-it-was-made-by-ai\/","title":{"rendered":"This curry does not exist \u2013 it was made by AI"},"content":{"rendered":"<p><\/p>\n<div>\n<p><img decoding=\"async\" src=\"https:\/\/image-prod.iol.co.za\/16x9\/800?source=https:\/\/xlibris.public.prod.oc.inl.infomaker.io:8443\/opencontent\/objects\/d3999784-f624-5f05-a37b-9b8a7e174840\" class=\"type:primaryImage\"\/><\/p>\n<p>Artificial intelligence (AI) image generators are making big advances, and they\u2019ve learnt a thing or two about South Africa.<\/p>\n<p>AI image generators are the latest in the rapidly growing world of machine learning. <\/p>\n<p>They are tools that transform a string of words, like \u201cfood magazine photo of Durban curry on a plate on top of a tablecloth\u201d into images like these:<\/p>\n<figure><img decoding=\"async\" class=\"baobab-embedded-image\" src=\"https:\/\/image-prod.iol.co.za\/resize\/650x65000?source=https:\/\/xlibris.public.prod.oc.inl.infomaker.io:8443\/opencontent\/objects\/4a6b08b3-690a-5441-b6ef-3db38425ab99\" loading=\"lazy\" width=\"650\"\/><figcaption>Artificial intelligence image of Durban curries generated via Stable Diffusion. Picture: James Browning IOL Tech via Stable Diffusion<\/figcaption><\/figure>\n<p>At a basic level, machine learning uses huge amounts of data to learn some kind of task. <\/p>\n<p>This could be identifying faces, for things like Instagram filters, or predicting which words come next in a sentence, like how Google suggests searches after you only type a couple of words.<\/p>\n<p>Image generators are no different, and are trained using vast collections of pictures paired with a description of what\u2019s happening in each of them. This allows them to predict what a given sentence may look like as an image. <\/p>\n<p>Here are some of its predictions for what \u201ca political rally in South Africa\u201d could look like:<\/p>\n<figure><img decoding=\"async\" class=\"baobab-embedded-image\" src=\"https:\/\/image-prod.iol.co.za\/resize\/650x65000?source=https:\/\/xlibris.public.prod.oc.inl.infomaker.io:8443\/opencontent\/objects\/3158999b-eeab-54b0-b24c-e7085c36aa37\" loading=\"lazy\" width=\"650\"\/><figcaption>Artificial intelligence image of a political rally in South Africa generated via Stable Diffusion. Picture: James Browning IOL Tech via Stable Diffusion<\/figcaption><\/figure>\n<p>Not bad! Except for the faces. These tools are only good at creating things if they see lots of examples of them during training. It would be interesting to see how much these tools \u201cknow\u201d about South Africa.<\/p>\n<p>As you can see, image generators often struggle with realistic faces, especially with groups of people.<\/p>\n<p>One of the things AI image generators are good at is making pictures in different artistic styles.<\/p>\n<p>Obviously, these tools often struggle with the fine details of complicated things like faces and hands. You\u2019ll no doubt run into examples of strange people with extra arms, or objects like firearms which seem okay from a distance, but make no sense on a closer look.<\/p>\n<p>As you might guess, it usually creates writing that is (mostly) nonsense. Here are its attempts at \u201ca political cartoon about Jacob Zuma\u2019s prison sentence ending\u201d:<\/p>\n<figure><img decoding=\"async\" class=\"baobab-embedded-image\" src=\"https:\/\/image-prod.iol.co.za\/resize\/650x65000?source=https:\/\/xlibris.public.prod.oc.inl.infomaker.io:8443\/opencontent\/objects\/0ca7bf55-dd7a-518c-8a73-a264aa51c219\" loading=\"lazy\" width=\"650\"\/><figcaption>Artificial intelligence image of a political cartoon of former president Jacob Zuma\u2019s prison sentence ending generated via Stable Diffusion. Picture: James Browning IOL Tech via Stable Diffusion<\/figcaption><\/figure>\n<p>You usually get better results by being specific and telling it exactly what you want. But it can be very interesting to see what it comes up with when given a very abstract sentence.<\/p>\n<p>Keep in mind that these machine learning models don\u2019t \u201cunderstand\u2019 what you ask them to do, and aren\u2019t doing any kind of \u201dthinking\u201c that would be familiar to a human. <\/p>\n<p>They just associate words and images in ways that they have seen before.<\/p>\n<p>Here are some very different attempts at \u201cChief Justice Zondo shining a light on corruption\u201d.<\/p>\n<figure><img decoding=\"async\" class=\"baobab-embedded-image\" src=\"https:\/\/image-prod.iol.co.za\/resize\/650x65000?source=https:\/\/xlibris.public.prod.oc.inl.infomaker.io:8443\/opencontent\/objects\/4680f68e-8046-5a05-b199-3fdbab11b898\" loading=\"lazy\" width=\"650\"\/><figcaption>Artificial intelligence image of Chief Justice Raymond Zondo shining a light on corruption generated via Stable Diffusion. Picture: James Browning IOL Tech via Stable Diffusion<\/figcaption><\/figure>\n<p>The AI model being used for these images is called Stable Diffusion, which is open source and available for free. <\/p>\n<p>The examples in this article are far from the best that can be achieved with better hardware, clever use of current tools like upscalers, and lots of attempts. <\/p>\n<p>But they should give you an idea of what is currently possible, and a taste of what is still to come.<\/p>\n<p><strong id=\"strong-e0e032c676df2b7eb3ad983a390573d1\">IOL Tech<\/strong><\/p>\n<p><a href=\"https:\/\/www.iol.co.za\/technology\/software-and-internet\/this-curry-does-not-exist-it-was-made-by-ai-73a71d41-318a-416e-b137-8249523986bd\">Source <\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Artificial intelligence (AI) image generators are making big advances, and they\u2019ve learnt a thing or two about South Africa. AI image generators are the latest in the rapidly growing world of machine learning. They are tools that transform a string of words, like \u201cfood magazine photo of Durban curry on a plate on top of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-1232452","post","type-post","status-publish","format-standard","category-celebrity-gossip"],"_links":{"self":[{"href":"https:\/\/www.ghanamma.com\/2022\/wp-json\/wp\/v2\/posts\/1232452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ghanamma.com\/2022\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ghanamma.com\/2022\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ghanamma.com\/2022\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ghanamma.com\/2022\/wp-json\/wp\/v2\/comments?post=1232452"}],"version-history":[{"count":0,"href":"https:\/\/www.ghanamma.com\/2022\/wp-json\/wp\/v2\/posts\/1232452\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ghanamma.com\/2022\/wp-json\/wp\/v2\/media?parent=1232452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ghanamma.com\/2022\/wp-json\/wp\/v2\/categories?post=1232452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ghanamma.com\/2022\/wp-json\/wp\/v2\/tags?post=1232452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}