Activity: Creating an Image Classification Model with Teachable Machine
Objective: To prepare a small dataset and train an image classification model to categorize five distinct objects using Teachable Machine.
Tool Required:
Teachable Machine:
(Web-based)https://teachablemachine.withgoogle.com/
Step 1: Prepare the Image Dataset
First, you need to collect images for each category. For this exercise, you must have at least 10-20 images for each of the following five categories:
books (Images of physical books, stacks of books, or libraries.)
computers (Images of desktop computers, monitors, laptops, or tablets.)
happy human face (Images of people clearly showing a happy or smiling face.)
watches (Images of wristwatches (analog or digital) and smartwatches.)
nature (Images of landscapes, forests, mountains, rivers, or plants.)
Step 2: Create the Image Project in Teachable Machine
Open Teachable Machine in your browser:
https://teachablemachine.withgoogle.com/ Click "Get Started".
Select "Image Project".
Choose the "Standard image model" option.
Step 3: Define the Classes and Upload Data
You will see two default classes. You need to rename these and add three more to match your five categories.
Rename Class 1: Click the pencil icon next to "Class 1" and rename it to
books.Upload Data for Class 1:
Click the "Upload" button under the
booksclass.Select "Choose images from your files" and upload all your images collected for the
bookscategory.
Repeat for other classes:
Rename "Class 2" to
computersand upload the corresponding images.Click "Add a class" and rename the new class to
happy human faceand upload images.Click "Add a class" and rename the new class to
watchesand upload images.Click "Add a class" and rename the new class to
natureand upload images.
Step 4:
Test the Model
Test the model by providing the below
images as input to it and write your responses
|
|
|
|
|
image1
|
image2
|
image3
|
Observation:
|
Image |
Happy (%) |
Sad |
Surprise |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0 Comments