AI - Book - 9 Handout For Website Upload-185-210
AI - Book - 9 Handout For Website Upload-185-210
Generative AI is an advanced form of AI that creates new content in the form of images,
text, and audio based on the data it has learnt from. Unlike traditional AI, which usually
classifies or predicts things, generative AI focuses on making new data that looks similar
to what it has been trained on. Let us understand the concept behind generative AI.
cat cat
Circle
Square
Labelled Datasets
Initially, the labelled data is used to teach machines (models), or you can say that
models are taught by humans with the help of data, and after learning, models help us
in identifying or generating new content. Let us understand it with the help of some
examples.
Example 1:
Suppose, you have trained a machine (model) with the help of a machine learning
algorithm and images of animals, with each image labelled to indicate the animal it
depicts: 'Elephant', 'Camel', and 'Cow'. This means the model was trained using the
supervised machine learning method.
After training, this model will be able to identify animals in new images that you provide
as input. Notice the given figure, where the provided input image allows the model to
correctly identify the 'Elephant', 'Camel', and 'Cow'.
Kips | Artificial Intelligence 179
Input Raw Data Supervisor
Labelled Data
Labels Camel
Cow
Elephant
Cow Camel Algorithm
Example 2:
Now, consider another example, where you trained a machine (model) with the help of
a machine learning algorithm and images of bicycles. At the time of training, all images
of bicycles were labelled, i.e., a supervised machine learning method was followed to
train the model. So, the model will be able to identify bicycles from the input you are
providing it. Notice the following illustration, where the model for the provided input
image can recognise bicycles.
Input Output
Characteristics or features of an item Label for the item
Bicycle
Both examples show how a model trained with supervised learning can accurately classify
new data based on the patterns it learns during training.
Supervised learning is a method that helps you understand how a machine learning
model is trained. Discriminative modelling is how the model uses what it has learnt to
identify the category or label of a particular input.
180 Artificial Intelligence | Kips
Discriminative models are also called predictive models because their role is to predict
the category or label of a given input based on the patterns learnt from the training
data. For instance, in example 2, the label "bicycle" has specific features, like wheels
and handlebars. With the help of these features, the model becomes more confident in
predicting that the object is a bicycle.
K i B o ’ s Fa c t
Unlabelled Datasets
This means that the data that is fed to the machine is random. In unsupervised learning,
different algorithms are used to identify or learn the relationships, patterns, and trends
within data, which can then be used to make predictions in the future or generate new
data.
Example 1:
Suppose, you want to predict a model to identify whether it is 'Elephant', 'Camel', or
'Cow', you provide it with a dataset containing images or descriptions of these animals
without any corresponding labels (names). The model does not have predefined labels,
so it discovers patterns, groups similar data, or extracts meaningful insights from the data
on its own (without human intervention), i.e., in the absence of a labelled dataset, it learns
from experience.
Unknown Output
No Training Data Set
Model Training
Kips | Artificial Intelligence 181
Example 2:
Consider another example where you are supposedly providing various pictures of
bicycles to a machine (model). Over the time, the model learns the common features
and characteristics shared by bicycles. Once trained, the model can use this knowledge
to generate an image of a bicycle that it has never seen before. This ability to create new,
realistic images based on learnt patterns is a key feature of generative models in machine
learning.
Generative AI
Visit the following link to watch the videos:
https://www.youtube.com/watch?v=om7iYSucLrk
https://www.youtube.com/watch?v=26fJ_ADteHo
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
Generative AI Timeline
Advancements in AI technologies like deep learning, which emphasise neural networks,
gave birth to generative AI. Initially, AI models were used only for identifying or
classifying objects or images, predicting weather and stock prices, assessing the risk of
disease, understanding human language, etc.
Today, many applications of generative AI exist, such as text generation, image synthesis,
and the production of creative content that displays the fruits of years of research and
development.
Kips | Artificial Intelligence 183
The different models developed throughout the development of generative AI are
depicted in the following picture:
2022
2020 Imagen
Midjourney 2022
2016-2019 Stable Diffusion
2014 OpenAI Five
2011 Generative Adversarial 2020 2022
IBM's Watson Networks GPT-3 ChatGPT
Generative AI vs Conventional AI
Regular or conventional AI processes or categorises already-existing data. It predicts the
output based on predefined rules or patterns that it learns from the data. In contrast,
generative AI is specially made to produce new and unique content. It uses patterns learnt
from training data to generate new, similar data.
Here are some significant variations between generative AI and conventional AI:
Basis Generative AI Conventional AI
Goal Generative AI creates new content Conventional AI analyses, processes,
that resembles the training data. and classifies data.
Example: When you ask ChatGPT to Example: A stock price prediction
write an essay, it can write a complete model can only predict the future
essay on a given topic. It means that it value of any given stock.
generated the content that was based
on a query given by the user.
Training Generalised generative AI models Conventional AI models can be
are prepared using a huge amount of prepared using less data, limited
data and multiple complex Python Python libraries (TensorFlow, Keras,
libraries, like ChatGPT. scikit-learn), and minimal processing
Also, a large amount of processing capacity.
capacity is required because the data Example: Normally, a model for
is very large. weather prediction will require
Example: GPT-3 was trained with data in megabytes. It uses a single
hundreds of gigabytes of text data. processor for training.
Types of Generative AI
Generative AI comes in a variety of forms or types, each with its unique advantages and
uses. Some of its most typical forms are listed below:
Examples of Generative AI
Generative AI is used in many fields, like art, music, language, and natural language
processing, as shown below:
Content Demand
Creation Forecasting
Healthcare
Virtual Diagnosis and
Worlds Prognosis
Fashion and
Product Design Fraud
Detection
Art Generation
Generative AI is being used to create unique works of art. The following are the different
examples of generative AI in art generation:
The Next Rembrandt Project uses data analysis and 3D printing to create a new
painting in the style of Rembrandt.
Note: Visit the following link to watch the video:
https://www.youtube.com/watch?v=IuygOYZ1Ngo)
AI models, like OpenAI's DALL.E, help generate unique visual concepts from textual
descriptions.
DALL.E 2 Runway
MidJourney DeepArt
(OpenAI) ML
Music Generation
Generative AI is also being used to create new music, create original compositions, and
even collaborate with AI to produce innovative music.
Note: Visit the link to understand how AI can compose a personalised soundtrack to your
life. https://www.youtube.com/watch?v=wYb3Wimn01s
The following are the different examples of generative AI in music generation:
Generative AI can be used to create melodies and harmonies.
Generative AI can help songwriters by generating lyrics based on specific themes,
keywords, or phrases.
AI can suggest instrumentation and orchestration arrangements for a specific song.
Generative AI can be used during live performances to create real-time music.
AI can create realistic environmental sounds.
A I
LAB
Experiment 1: GAN Paint Hands-on Activity
GAN Paint can be used to draw pictures because it is trained to create pictures. Each left button
("door", "brick", etc.) represents 20 neurons. Switching these neurons directly shows the network's
visual world model. The software shows that the network learns about trees, doorways, and roofs
by drawing. Let us experiment with GAN Paint and see what you can create.
To use GAN Paint, do the following:
Visit the following link. https://ganpaint-v2.vizhub.ai/
On visiting the link, you will get the interface for GAN Paint, as shown below:
First, you need to select a base image from the website's library. For this, select any image
from the ones appearing in the bottom panel of the interface.
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.
Artbreeder
Artbreeder is an AI-powered platform that enables users to generate new images by
combining different generative adversarial network (GAN) models. Users can select
and combine different GAN models to create new and unique images. This platform
enables users to create artwork, character designs, landscapes, and more by combining
and tweaking different elements.
A I
LAB
Experiment 2: Artbreeder Hands-on Activity
Let us generate images with text prompt using Artbreeder.
To use Artbreeder, do the following:
Visit the following link: artbreeder.com
The following interface appears. By default, you are on the welcome page. Click on the Create
tab located at the top-centre of the window.
You will get the different categories for generating images. Click on the New Image button
under the category of your choice. For example, scroll down the web page and click on the
New Image button under the Prompter category.
Give more prompts and see how AI generates your imagination using your text prompts.
Runway ML
Runway ML is a creative platform that offers a collection of pre-trained machine learning
models that can be used for many tasks, like image and video generation, style transfer,
object detection, and more. It provides an easy-to-use interface for building, training,
and deploying various types of generative models, including GANs, VAEs, and image
A I
LAB
Experiment 3: Runway ML Hands-on Activity
Let us explore AI magic tools of Runway ML.
To use Runway ML, do the following:
Visit the following link: https://runwayml.com
You will get the welcome page of Runway ML platform. Click on the Try Runway for Free
button to explore it.
You will get the next page. It will ask you to login. Login with your Google account by clicking
on the Log in with Google button.
After login, you will get the following screen. Select any tool of your choice under Runway's
AI Tools to generate new content with it.
You will move on to the next window that allows you to enter a text prompt to generate
a video. Type the prompt, "A lion forest", in the Describe your shot... box and click on the
Generate 4s button. You will notice a progress bar that displays the progression of the video.
Wait until the progress bar is completed.
You will get the video once the progress bar is completed, as shown below. Click on the
Play button to watch the video. You can download the video by clicking on the
Download button.
In the same way, you can use other AI tools of Runway ML.
A I
LAB
Experiment 4: ChatGPT Hands-on Activity
To use ChatGPT, do the following:
Visit the following link:
https://chat.openai.com
ChatGPT platform asks you to login. Login with your Google account. After login, you will
get the interface of ChatGPT.
Type your text prompt in the Message ChatGPT textbox and press Enter. ChatGPT gives you
a response according to your prompt.
Experiment 5: Gemini AI
To use Gemini AI, do the following:
Visit the following link: https://gemini.google.com
Gemini AI platform asks you to login. Login with your Google account. After login, you will
get the interface of Gemini AI.
Type your text prompt in the Enter a prompt here textbox and press Enter. Gemini AI gives
you a response according to your prompt.
Note: In the same way, you can interact with Copilot by visiting the following link:
https://copilot.microsoft.com/
Text Processing:
Summarisation,
Paragraph Writing, etc.
Price
Video
Muse AI Visla AI Topas AI
Text
ChatGPT Notion AI Compose
Images
Midjourney Magic Studio Pebblely
Design
Viesus Piggy AI Galileo
Coding
Bugasura CodeGPT Rapit Ghostwriter
Audio
FineShare Boomy AI Playlist AI
Productivity
Briefly AI Socra AI Viesus
Writing
Jasper Ryter Anyword
Voice
Generator Murf Lovo Resemble
Data
Tableau Polymer Sisense
R c ap
Generative AI is an advanced form of AI that creates new content in the form of images, text, and
audio, based on the data it has learnt from.
Generative models are trained using supervised and unsupervised learning techniques.
In supervised learning, the learning of the machine (model) is done with the help of labelled data.
In unsupervised learning, the learning of the machine (model) is done with the help of unlabelled
data.
Generative AI models learn patterns and structures from large datasets during training and use
this knowledge to generate new data that is similar to the training data but not identical.
The content generated through generative AI resembles human-generated content.
Regular AI or conventional AI predicts the output based on predefined rules or patterns that they
learn from the data; whereas, generative AI is specially made to produce new and unique content.
Generative AI comes in a variety of forms or types, like Generative Adversarial Network (GAN),
Variational Autoencoders (VAE), Recurrent Neural Networks (RNN), and Autoencoder.
Generative AI is being used in many fields, like art, music, language, natural language processing,
etc.
Many generative AI tool, like Artbreeder, Runway ML, ChatGPT, Gemini, Copilot, etc, are available
today that enable users to create and experiment with generative models.
There are several ethical considerations with generative AI, like ownership, human autonomy,
biased outcome, misuse of tools, and privacy.
12. _________________ is an AI-powered platform that enables users to generate new images by
combining different Generative Adversarial Network (GAN) models.
Answers
A. Select the correct option.
1. b 2. c 3. b 4. a 5. c 6. a 7. d 8. b
9. c 10. b 11. c 12. b 13. c 14. a 15. c