{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"markdown","source":"# Artificial Intelligence: A Digital Renaissance","metadata":{}},{"cell_type":"markdown","source":"# Introduction\n\nIn the past two years, generative AI has completely changed the visual arts sector by giving artists brand-new, cutting-edge tools to produce works of unmatched beauty. Using algorithms, generative artificial intelligence (AI) creates original images, videos, and sounds based on the user's specified parameters. Artists are able to create stunning visuals that capture emotions and feelings like never before by fusing conventional art methods with digital tools propelled by generative AI. In this essay, I'll talk about how generative AI has helped the field of visual art experience a digital renaissance and what effect it's had on society as a whole.\n\nFor artists, generative AI has opened up a world of opportunities to realize their artistic ideas. Generative AI has made it simpler than ever to communicate ideas visually by opening up access to data, algorithms, and tools that may be utilized to create original pieces of art. Designers might for instance use generative techniques like GANs (Generative Adversarial Networks) to produce wholly original works of art based on preexisting photos. The borders between conventional art forms and digital technologies can now be explored by artists in ways that were previously impossible. Furthermore, generative AI has made it possible for people from all backgrounds—from amateurs and enthusiasts to professionals—to create breathtaking pictures with little to no work or expertise.\n\nThe visual arts industry has seen a significant impact from generative AI. In addition to enabling artists to create ground-breaking works, it has also given rise to a new generation of creatives who are expanding the realm of what is technically feasible. Inspiring people to explore their own creativity and giving them the freedom to try new things without worrying about failing, generative AI has sparked a new wave of innovation in the arts. Because of this, we are starting to witness a previously unheard-of level of artistic expression that is altering how people perceive and make art.\n\n![](https://i.ibb.co/gMZJ5rT/4-U1m-Rae-Imgur.jpg)\n*Art created with early access SDXL 0.9:* **Amos I. ‘The Creation of AI’. 2023**","metadata":{}},{"cell_type":"markdown","source":"# Exploring the Potential of Generative AI in Visual Art\n\nIn recent years, significant progress has been made in the use of generative AI in art. Generative AI algorithms were first explored in the early 2000s, but the outcomes were disappointing. The algorithms created images from random noise or user instructions. Deep learning, however, has enabled generative AI to advance significantly in both accuracy and speed. With the help of this technology, quick and automated design generation is now possible in a number of creative industries, including architecture and fashion design. Instead of starting from scratch, designers can experiment with many different iterations of a concept, increasing the potential for creative expression.\n\nArtists can also experiment with new artistic forms, methods, and opportunities thanks to generative AI. AI can be used to make original abstract artworks, edit photos with a variety of filters, or create neural-style transfers from one image source to another using generative algorithms. In its creative attempts, generative AI can think outside the box and take chances that humans might not. For instance, it can create surrealist works by collecting parts from several sources and fusing them together to create something wholly own. Artists are now able to create previously impossibly difficult works that push the limits of conventional visual art forms because of this ground-breaking technology.\n\n![](https://i.ibb.co/2g33gQf/1-HPFsk-MY.jpg)\n*Art created with early access SDXL 0.9:* **Amos I. ‘Life and Death’ 2023**\n\n![](https://i.ibb.co/VCYd8Q9/2-LKvfc8p.jpg)\n*Art created with early access SDXL 0.9:* **Amos I. ‘The Watchers’ 2023**\n","metadata":{}},{"cell_type":"markdown","source":"# ****Unleashing Creativity: The Role of Generative AI in Artistic Expression****\n\nGenerative AI has democratized artistic expression, allowing individuals with limited artistic training to create visually captivating pieces. The technology can be used to produce art at various levels, ranging from simple sketches and photographs to audio or textual input. This opens the door for anyone, regardless of background or aptitude. This technology has empowered those who may not have had access to formal arts education or professional opportunities in the past. By breaking down traditional barriers to entry, generative AI has allowed more diverse voices to be heard in the art world. For instance, historically underrepresented minority groups and cultures can now employ  the technology to produce original pieces of art that reflect their own stories and viewpoints.\n\nAdditionally, generative AI has compelled artists to reevaluate accepted artistic standards and try out novel techniques. The fusion of visual art, music, and other forms of expression is creating a new creative space as technology advances. This environment offers endless opportunities for creativity. In fact, generative AI, in the opinion of many experts, will usher in a new era of creativity in which the lines between art, design, and science will become blurred. The technology has already allowed artists from all backgrounds to explore more abstract ideas.\n\nA completely new form of collaboration between artists and machines has also been made possible by generative AI. Instead of the conventional \"artist vs. machine\" paradigm, generative AI allows for a more collaborative relationship where the two parties collaborate to produce something original. For instance, a creator can input their own work into a generative network, which then modifies it slightly or adds components from its database of images and concepts to take the artwork in unexpected directions. Consequently, richer artwork is produced than either party could have produced independently.","metadata":{}},{"cell_type":"markdown","source":"# **Generative Art Composition Techniques**\n\nIn the following section, I will describe two techniques that can be used to produce distinct works of art. Keep in mind, however, that these two techniques are merely a glimpse of the countless methods available for creating generative artworks. It's important to note that as technology progresses, the range of generative art techniques will expand even further.\n\n### **Composition Technique: Image to Video**\n\nImage-to-video in generative AI art refers to the process of transforming a static image into a dynamic video sequence using artificial intelligence. By leveraging generative models like GANs or VAEs, the initial image is analyzed, and underlying patterns and structures are learned. The generative model generates a series of frames that simulate the visual progression over time, creating the illusion of animation. This technique allows artists to bring their artwork to life, adding movement and storytelling elements to captivate viewers. Image-to-video in generative AI art offers a unique fusion of static and dynamic visuals, unlocking new avenues for creativity and expression.\n\n**Project Workflow**\n\nI began by utilizing P5.js to develop an animation or 'Blue Flow Field’. Once the animation was complete, I captured a still image from it. This image served as the input for the AI, which transformed it into an entirely distinct artwork named 'Blue Faces'. The remarkable aspect of this technique is its versatility, as it can be applied to nearly any image imaginable, ranging from your own hand-drawn sketches to photographs you've captured, and everything in between.\n\n**'Blue Flow Field' created using P5.js**\n![](https://i.ibb.co/YXH1RPN/20230701222314311.jpg)","metadata":{}},{"cell_type":"markdown","source":"### **Results**\n\n### **‘Blue Faces’ by Amos I. 2023**","metadata":{}},{"cell_type":"code","source":"from IPython.display import YouTubeVideo\n\nvideo_id = 'AcuO6ZWfX84'\n\nwidth = 560\nheight = 315\n\nvideo = YouTubeVideo(video_id, width=width, height=height)\ndisplay(video)","metadata":{"execution":{"iopub.status.busy":"2023-07-04T22:39:47.206262Z","iopub.execute_input":"2023-07-04T22:39:47.207473Z","iopub.status.idle":"2023-07-04T22:39:47.292818Z","shell.execute_reply.started":"2023-07-04T22:39:47.207433Z","shell.execute_reply":"2023-07-04T22:39:47.291710Z"},"_kg_hide-input":true,"jupyter":{"source_hidden":true},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"### **Composition Technique: Map Bashing**\n\nWith the Map Bashing approach, you take several photos, run them via Controlnet, and then combine them into one to achieve the desired composition. This can then be sent to Controlnet to create the image based on the composite image. This method makes it feasible to integrate several parts into a single image.\n\n**Project Workflow**\n\nFirst, I generated two distinct artworks: Image 1.1 and Image 1.2. These two images were then fed into an AI tool known as \"Controlnet,\" which generated 'Maps' or black-and-white outlines of the images (2.1 & 2.2). Next, using a photo editor, I merged these 'Maps' to form a singular, unified map (3.1). Finally, this newly crafted map was passed through Controlnet once more. With specific instructions given to the AI Generator, it diligently worked to realize my art vision. The result was the creation of my latest artwork, titled 'The Mortician'.\n\n**Original Image 1 (1.1)**\n![](https://i.ibb.co/TMp5c1D/man-laying-in-bed-sickly-painted-by-Caravaggio-painting-texture-bar-nds-extra-legs-extra-digits-seed.png)\n\n**Original Image 2 (1.2)**\n![](https://i.ibb.co/5rg0DdQ/Hooded-shadowy-skeleton-figure-in-a-thick-black-robe-standing-looking-to-the-left-painted-by-Carrava.png)\n\n**Controlnet Map for Image (2.1)**\n![](https://i.ibb.co/smBJR7C/image-3.png)\n\n**Controlnet Map for Image (2.2)**\n![](https://i.ibb.co/zfhrY0Z/image.png)\n\n**Controlnet Maps Combined (3.1)**\n![](https://i.ibb.co/zJ70Wh2/image-5.png)\n\n**Final Results**\n![](https://i.ibb.co/9GcXqx9/20230703185813010.jpg)\n**‘Messor Mortis’ by Amos I.**","metadata":{}},{"cell_type":"markdown","source":"# Embracing the Endless Possibilities of Generative AI\n\nGenerative AI has transformed the visual arts sector and dismantled conventional barriers. Due to its wide range of uses, it has opened up new avenues for artistic expression and encouraged interaction between humans and machines. Our understanding of the potential outcomes from fusing art and technology will undoubtedly increase as a result of the new creative era that generative AI is ushering in. It is likely that generative AI will continue to be a major force in visual art and beyond in the upcoming years.\n\nThis technology has had a profound impact on the creative realm, yet its immense potential remains largely unexplored. As technology advances, generative AI continues to push the boundaries of artistry, paving the way for a future filled with innovative and captivating creations. This remarkable tool has revolutionized modern creativity, expanding horizons and opening up new avenues for artists to craft visually stunning masterpieces. With limitless possibilities for exploration and growth, we now stand on the threshold of an exhilarating journey into uncharted realms of artistic expression.","metadata":{}},{"cell_type":"code","source":"import pandas as pd\ndf = pd.read_csv('/kaggle/input/2023-kaggle-ai-report/sample_submission.csv')\ndf.iloc[0,1] = 'Generative AI'\ndf.iloc[1,1] = 'https://www.kaggle.com/code/amosii/artificial-intelligence-a-digital-renaissance'\ndf.iloc[2,1] = 'https://www.kaggle.com/code/monicasusan/through-the-eyes-of-ai/comments#2330340'\ndf.iloc[3,1] = 'https://www.kaggle.com/code/realsleim/the-state-of-text-conditioned-music-generation/comments#2330342'\ndf.iloc[4,1] = 'https://www.kaggle.com/code/sodipepaul/ai-ethics-a-two-year-review/comments#2330344'\ndf.to_csv('submission.csv', index=False)\ndf.head()","metadata":{"execution":{"iopub.status.busy":"2023-07-04T23:27:54.221932Z","iopub.execute_input":"2023-07-04T23:27:54.222349Z","iopub.status.idle":"2023-07-04T23:27:54.240227Z","shell.execute_reply.started":"2023-07-04T23:27:54.222317Z","shell.execute_reply":"2023-07-04T23:27:54.239004Z"},"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]}]}