Introduction
A generative adversarial network (GAN) is a pair of duelling systems playing a game. The discriminative network has been trained to recognize, or discriminate among, types of data. The generative network creates novel examples and tries to fool the discriminating network into accepting them. Since their invention by a Google team in 2014, GANs have been used for everything from hyper-realistic images for computer games to high-energy physics simulations.
This lesson provides online resources that allow students to create music, visual art or other creative output using GANs.
Learning Goals
- Create an audio-visual project using artificial intelligence (AI)
- Morph an image into a style of artwork using AI
Vocabulary
- Generative Adversarial Networks (GANs)
- An approach to generative modelling using deep learning methods, such as convolutional neural networks. Generative modelling is an unsupervised learning task in machine learning that involves automatically discovering and learning the regularities or patterns in data in such a way that the model can be used to generate or output new examples that could have been plausibly drawn from the original dataset.
Guiding Questions
- Do you know any examples of AI being used for creative projects?
- Is there a place for AI in creating visual artworks?
Curriculum Links
This module aligns with provincial and territorial Computer Studies curricula as it provides opportunities for students to explore emerging areas of computer science research. In addition, through the Visual Arts curriculum, students have the opportunity to explore and experiment with a variety of media and materials, as well as traditional and/or emerging technologies, tools and techniques, and apply them to produce artworks.
Materials
- A device (computer / tablet / smartphone) with internet connection
- Sign up for a Deep Dream Generator account
Computer Activity
Activity 1: Make an Audio-Visual Masterpiece with an AI Collaborator
- Select a song file or other audio file (an MP3 of under 15 minutes in length).
- Go to the WZRD website. Name your project and enter your song.
- Select a visual theme.
- Choose the images you want to appear or have them chosen for you by clicking Skip this step.
- Autofill images and rearrange them on the timeline as desired.
- Render video.
- Watch!
Activity 2: Creating Using AI – Deep Style Transfer
Students use their own photos to work in Deep Style Transfer or Deep Dream
- Sign up for a Deep Dream Generator account.
- Choose a base image. This image defines the base structure of your art piece. Royalty-free images are available from several websites, such as Pexels or Pixabay or you can use your own image.
- Choose a style image. This image defines the style of your art piece. You can use a painting or drawing of your own or artworks that are in the public domain—for example, from the National Gallery of Art website.
- Examine the resulting image. Can you see which parts of the style image were transferred to your base image?
- Using the same base and style images, try changing the style scale up or down and repeat the process.
- Repeat the process using different style images.
Example
Base:
Style Image 1:
Source:
Courtesy National Gallery of Art, Washington, DC
Final Image:
Style Image 2:
Courtesy National Gallery of Art, Washington, DC
Final Image 2:
Deep Dream
- Sign up for a Deep Dream Generator account.
- Choose an image to “dream.” Royalty-free images are available from several websites, such as Pexels or Pixabay, artwork that is in the public domain can be found on the National Gallery of Art website or you can use your own image.
- Click Settings and choose a layer.
- Examine the resulting image. Are you surprised with the patterns that result?
- Using the same base image, choose a different layer and repeat the process.
Examples
Conclusion
Discussion Activity
What is different about this kind of art-making process as compared to painting or drawing? What are its advantages and disadvantages?
In terms of art-making, do you believe AI is:
- A tool used by a human?
- A partner of a human?
- A muse to a human?
- A creator enabled by a human?
Additional Resources
Additional Resources
- Harold Cohen’s “Aaron” – Video
- Harold Cohen Biography (Tate Modern)
Social Media Resources
- Xander Steenbrugge, creator of WZRD, Twitter
- Deep Dream Generator Twitter