Generative Ai
Generative Ai
Summary:
The lesson covers four main topics, including an introduction to Generative AI, how it works,
how to use it, and the ethical considerations that come with its use. By the end of the lesson,
students will have a basic understanding of Generative AI, how it can be used, and the
potential ethical implications to consider.
Learning Objectives
● To understand Generative AI and its types.
● To know examples and benefits of using Generative AI.
● To identify popular Generative AI tools and their applications.
● To sensitize the students about the ethical considerations of using Generative AI.
● To explain students about the potential negative impact of Generative AI on society.
Learning Outcomes:
● Students will be able to define Generative AI & classify different kinds.
● Students will be able to explain how Generative AI works and recognize how it learns.
● Students will be able to apply Generative AI tools to create content.
● Students will understand the ethical considerations of using Generative AI.
Pre-requisites:
● Knowledge of AI project cycle.
Key-concepts:
● Generative AI
Programs/Applications Used:
● MS PowerPoint
● MS Word
● Web browser (any)
122
Activity: Guess the Real Image vs. the AI-Generated Image
Purpose:
To understand the difference between real and AI-Generated Images.
Examine the images and determine whether either of the images is a real image or an
AI-generated image. Also, give reasons for your answer.
The classification of data elements into categories or labels was initially taught to the machine learning
models by humans.
In unsupervised or self-supervised learning, the machine learning model takes unlabeled datasets and
figures out patterns and inherent structures within them — without human intervention.
124
Activity
Watch the video: https://www.youtube.com/watch?v=26fJ_ADteHo and Share your views
Source: https://www.desdevpro.com/blog/talk-rise-of-generative-ai
Generative AI has evolved over several years to reach its current form. Over time, advancements in
neural networks and deep learning techniques have significantly enhanced its capabilities. From early
experiments in generative models to breakthroughs in natural language processing and image
generation, the development of generative AI has been a continuous journey of innovation and
refinement. Today, generative AI encompasses a wide range of applications, including text generation,
image synthesis, and creative content creation, showcasing the culmination of years of research and
development efforts.
Generative AI vs Conventional AI
In contrast to other forms of AI, Generative AI is specially made to produce new and unique content
rather than merely processing or categorizing already-existing data. Here are some significant variations:
125
Generative AI creates new content, whereas
Goal conventional AI analyzes, processes, and
classifies data.
Types of Generative AI
Generative AI comes in a variety of forms, each with unique advantages and uses. Some of the most
typical varieties are listed below:
126
Examples of Generative AI
Generative AI has many applications, from art and music to language and natural language processing.
Here are some examples of how generative AI is being used in various fields:
▪ Art: Generative AI is being used to create unique works of art.
▪ For example, The Next Rembrandt project used data analysis and 3D printing to create a new
painting in the style of Rembrandt
(Watch video: Video source: The Next Rembrandt. (2016, April 5). The Next Rembrandt [Video]. YouTube.
https://www.youtube.com/watch?v=IuygOYZ1Ngo)
▪ Music: Generative AI is being used to create new music, either by composing original pieces or by
remixing existing ones.
▪ For example, AIVA is an AI composer that can create original pieces of music in various genres.
(Watch video: Video source: TED. (2018, October 1). How AI could compose a personalized soundtrack to
your life | Pierre Barreau [Video]. YouTube. https://www.youtube.com/watch?v=wYb3Wimn01s)
▪ Language: Generative AI is being used to generate new language, such as chatbots that can hold
conversations with users or natural language generation systems that can produce written
content.
(Watch video: Video source: BBC News. (2023, January 15). What is ChatGPT, the AI software taking the
internet by storm? - BBC News [Video]. YouTube. https://www.youtube.com/watch?v=BWCCPy7Rg-s)
▪ Each left button ("door", "brick", etc.) represents 20 neurons. The software shows that the network
learns about trees, doorways, and roofs by drawing.
▪ Switching neurons directly shows the network's visual world model.
128
▪ To use GAN Paint, you will first need to select a base image
from the website's library. You can then use the brush tool
to add objects and textures to the image. As you paint, the
GAN network will learn to generate more realistic images.
▪ You are encouraged to experiment with GAN Paint and see
what you can create. Have fun!
Link: https://ganpaint-v2.vizhub.ai/
Generative AI tools
There are many generative AI tools available today that enable users to create and experiment with
generative models. Here are some popular tools:
▪ Artbreeder: Artbreeder is a web-based tool that
enables users to generate new images by
combining different GAN models. Users can
select and combine different GAN models to
create new and unique images.
Hands-on Activity
Generate Images with Text Prompt
1. Go to artbreeder.com
2. Select Create from menu bar and click on New
Image under Prompter category.
3. Give cool text prompt and see how AI
generates a picture from those prompts.
▪ Runway ML: Runway ML is a platform for
creating, training, and deploying generative models. It provides a user-friendly interface for
building and training various types of generative models, including GANs, VAEs, and image
classifiers.
(Watch video: Video source: https://www.youtube.com/watch?v=trXPfpV5iRQ)
Explore AI Magic Tools Of Runway ML
1. Go to https://runwayml.com/
2. Explore the AI Magic Tools
3. Take any tool of your choice and generate new content with it.
ChatGPT
Link: https://chat.openai.com/
I asked ChatGPT to introduce itself. And here is the response
129
Gemini
Link: https://gemini.google.com/
I asked Gemini to introduce itself. And here is the response!
Image source: Khare, Y. (2023, April 10). Google VS Microsoft: The Battle of AI Innovation. Analytics Vidhya.
https://www.analyticsvidhya.com/blog/2023/04/google-vs-microsoft-the-battle-of-ai-innovation/
Hands-on Activity
Chit-Chat with ChatGPT & Gemini
▪ Sign up & Login into both ChatGPT and Gemini.
130
▪ Chat with the ChatGPT and ask it to write a paragraph on How it Works? - ChatGPT
▪ Similarly, Chat with Bard and ask it to write a paragraph on How it Works? - Gemini
131
Some more tools
132
● Lead to job displacement for humans who previously performed these tasks.
● Generative AI has the potential to generate sensitive personal information, such as social security
numbers or medical records, which could be used for malicious purposes.
Revision Time
● What do you understand about Generative Artificial Intelligence? Give any two examples.
● Write any two AI tools each for the following-
▪ Generative AI image generation tools
▪ VAEs
▪ RNNs
● How Generative AI can be helpful in following fields-
▪ Architecture
▪ Coding
▪ Music
▪ Content Creation
● Sakshi has been assigned a homework essay on the topic, “The Impact of Climate Change on Coral
Reefs.” The essay requires Sakshi to research and explain various aspects of climate change, such as
ocean acidification and rising sea temperatures, and their effects on coral reef ecosystems. His
friend suggested using some text generation tool. List some guidelines for Sakshi to prevent misuse
of Generative AI and use it constructively.
● How do you think generative AI can revolutionize the creative industry, such as art and fashion, by
enabling the generation of unique and innovative designs?
● Considering the ethical challenges associated with generative AI, what are your thoughts on
establishing guidelines or regulations to ensure responsible use of these technologies? How can we
balance the potential benefits and risks?
133