Low Code/No Code AI Platform Teachable Machine: Testing the Model

AI Anytime · Beginner ·📰 AI News & Updates ·3y ago

Key Takeaways

The video demonstrates testing a trained model on Teachable Machine, a low code/no code AI platform, using an exported model for testing purposes.

Full Transcript

foreign welcome to AI anytime channel so in the last video we used uh low code no code AI platform teachable machine to build a classifier okay we build a classification model with the help of teachable machine where we downloaded first uh brain MRI images from kaggle and then we uploaded those images the data set on teachable machine and we use the platform to train a model and then we exported that model you know locally right so you can see on my screen this this was the platform that we used and we also tested it out with ends with a sample image right so you can export the model from here that we have already exported okay so we'll so in this video we'll test it out we'll test that the python code that was given here if you see here let me come down okay the code snippet that we we can see uh which has been this has been given as an instruction on that how we can use that model okay if you really want to test it out locally so let me go back to folder I will create a new folder here I'll call it app because later we will also be build a streamlit application you know so in this I'll first create I'll copy this test dot PNG file that we need put it inside app and in app I will open this in terminal good and I will create a virtual environment so Python 3 iPhone name VNV and Dot VNV it will create a virtual environment for me I will go inside VNV and Bin if you if you are on Windows you might be using power cell or terminal you have to go to scripts not in bing and then uh Source activate to activate this virtual environment you can see in the right hand side we have app now which has been activated okay then I will go to the root directory the main directory that we have right and then I'll create uh maybe let's go to vs code and create the file there okay uh well first let me turn off all these notifications that I am getting so you can see I am in this app folder or the directory and then I have a VNV there and I have a sample file that we can test we first need to create a requirements file requirements.txt okay because we have to use a few libraries okay there are a few dependencies that are needed to run that code snippet that we have you know we have seen on the the teachable machine platform Okay so they they have given the Keras model but now Keras comes uh by by default when you install tensorflow what I'll do I will do tensorflow CPU I'm not going to use GPU for this inference so I will write tensorflow hyphen CPU to just download the CPU version of tensorflow very minimal modules required right to run that image classifier if you if you are on GP GPU you can have tensorflow that and though I have GPU but I will not use it okay so I'll just use tensorflow CPU and then uh what else we will need uh numpy and below right these are the things which required let me go back to this code and see yeah so what we will do now we'll just uh first copy this code from here and I'll get back to vs code and meanwhile let me first do a pip install so P3 install hyphen R requirements.txt we have to first install all the dependencies right so it will take little time because tensorflow CPU you can see right it says around 225 MB inside right anyway uh what next so we'll create a test.py file where we will test this python code and see if he's running as it is okay or we have to make some changes in the code in we will also create a streamlit application later on and then we'll continue it and then we'll deploy it but um first first thing that I can see that we need this couple of files in the directory okay the Keras model or levels txt okay then let me first see this has been downloaded then let me go back if you if I go back you can see this converted Keras folder that I have I'll copy this to come inside app and I'll paste it so now you can see I have this Keras underscore model.h5 and the labels.txt if you click on levels.txt we have 0 which means no and one means which is yes the binary classification problem where there are two classes in Kira's model I can see this has to be renamed okay underscore H5 levels txt install below instead of pil this is a good well this is a good suggestion anyway so we have installed pillow if you see here and then we have numpy the model you can see the model has been loaded here with Keras uh modules load underscore model then your class name then we are you can see over here a very very well documented code okay they are determining the first position in the safety pose the Tuple and RGB and the sizes uh 224 across 224 the channel and then we are you have to give this image path so let me change the image path so it will be test.png so test dot PNG the sample file that we have and to convert the rdb if it's not and size 224 to 24 then we are turning the email into a numpy array so we can send that numpy array uh to the train model to perform the prediction step okay and we are normalizing the arrays you can see it over here with numpy DOT flow 32 and then then we are loading the email into the array and then running the inference that model that we have that we have you know imported over here and then we are getting this ARG max value the maximum of the classes that we have and then class name and prediction pretty much good so let's do one thing we have requirements of txt and everything so let's run this okay so what I will do I will run this okay perfect so when I ran the program or the code I will see it's a python file right so pretty much simple Python and the file name Dot py and you can see the class which says one yes it means tumor has been detected in this image that the test PNG file that we have you can see it over here and this also gives us a Confidence Code around 0.99 which mean 99 percent right have been detected so what we will do next now okay we will take this code and we'll create a streamlit application we will upload couple of more images and see when we are inferencing it okay so what we did we took the code snippet from teachable machine we had a sample image and then we created a requirement.txt file we installed all the dependencies or libraries and then we tested it out okay with the code snippet that we here in test.pi now in the next video we will create a streamlined application okay for uh integrating this model into a UI okay so if you like the content like the video please like and comment your thoughts or views of feedback in the comment box and please share this channel uh with your friends and in your peer thank you so much

Original Description

In this video, We will test the trained model on Teachable Machine. The exported model has been used to perform the testing. Teachable Machine Link: https://teachablemachine.withgoogle.com/ Kaggle Dataset Link: https://www.kaggle.com/datasets/navon... #python #deeplearning #ai
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from AI Anytime · AI Anytime · 5 of 60

1 Spelling and Grammar Checking Streamlit App: Building Docker Image
Spelling and Grammar Checking Streamlit App: Building Docker Image
AI Anytime
2 Spelling and Grammar Checking Streamlit App: Docker Image and Docker Hub
Spelling and Grammar Checking Streamlit App: Docker Image and Docker Hub
AI Anytime
3 Image Caption Generator: Google Colab and Hugging Face
Image Caption Generator: Google Colab and Hugging Face
AI Anytime
4 Low Code/No Code AI Platform Teachable Machine: Brain MRI Image Classification
Low Code/No Code AI Platform Teachable Machine: Brain MRI Image Classification
AI Anytime
Low Code/No Code AI Platform Teachable Machine: Testing the Model
Low Code/No Code AI Platform Teachable Machine: Testing the Model
AI Anytime
6 Low Code/No Code AI Platform: Streamlit App for Brain MRI Image Classification
Low Code/No Code AI Platform: Streamlit App for Brain MRI Image Classification
AI Anytime
7 Readme Generator Streamlit App using ChatGPT
Readme Generator Streamlit App using ChatGPT
AI Anytime
8 Generate Minutes of Meeting (MoM) from Video using ChatGPT: AI as an API
Generate Minutes of Meeting (MoM) from Video using ChatGPT: AI as an API
AI Anytime
9 The Great AI Showdown: ChatGPT vs ChatSonic 🔥
The Great AI Showdown: ChatGPT vs ChatSonic 🔥
AI Anytime
10 Generating Transcripts and News Article with Whisper, GPT-3.5, ChatGPT and Streamlit
Generating Transcripts and News Article with Whisper, GPT-3.5, ChatGPT and Streamlit
AI Anytime
11 Toxicity Classifier using Machine Learning and NLP
Toxicity Classifier using Machine Learning and NLP
AI Anytime
12 Toxicity Classifier API using FastAPI
Toxicity Classifier API using FastAPI
AI Anytime
13 Toxicity Classifier Streamlit App
Toxicity Classifier Streamlit App
AI Anytime
14 Low-Code Insurance Prediction with PyCaret and Streamlit
Low-Code Insurance Prediction with PyCaret and Streamlit
AI Anytime
15 Deploy Streamlit Python Application for Free
Deploy Streamlit Python Application for Free
AI Anytime
16 GPT3 Powered Text Analytics App
GPT3 Powered Text Analytics App
AI Anytime
17 AI Image Generation Streamlit App
AI Image Generation Streamlit App
AI Anytime
18 Streamlit and txtai: Building an Abstractive Summarization App in Python
Streamlit and txtai: Building an Abstractive Summarization App in Python
AI Anytime
19 Building a Topic Modeling and Labeling app with Streamlit
Building a Topic Modeling and Labeling app with Streamlit
AI Anytime
20 The Art of AI: Exploring Midjourney, Dall-E, and Lexica
The Art of AI: Exploring Midjourney, Dall-E, and Lexica
AI Anytime
21 Exploring the latest Large Language Models (LLaMA and Alpaca)
Exploring the latest Large Language Models (LLaMA and Alpaca)
AI Anytime
22 Comparing LLMs like GPT-X, LLaMA, and Alpaca: Analyzing the Perplexity Score
Comparing LLMs like GPT-X, LLaMA, and Alpaca: Analyzing the Perplexity Score
AI Anytime
23 GPT-3 powered Q&A App using Langchain, GPT-Index, and Gradio
GPT-3 powered Q&A App using Langchain, GPT-Index, and Gradio
AI Anytime
24 All things #ai . Latest and greatest in AI. #tech #python #chatgpt #youtubeshorts #shorts #gpt3
All things #ai . Latest and greatest in AI. #tech #python #chatgpt #youtubeshorts #shorts #gpt3
AI Anytime
25 Text-to-Video Generation using a Generative AI Model
Text-to-Video Generation using a Generative AI Model
AI Anytime
26 #ai brand name generator. #artificialintelligence #tech #shorts #youtubeshorts #youtube #chatgpt
#ai brand name generator. #artificialintelligence #tech #shorts #youtubeshorts #youtube #chatgpt
AI Anytime
27 Talking AGI with Sam Altman: A Deepfake Showcase
Talking AGI with Sam Altman: A Deepfake Showcase
AI Anytime
28 A conversation with ChatGPT creator Sam Altman. #tech #technology #ai #shorts #viral
A conversation with ChatGPT creator Sam Altman. #tech #technology #ai #shorts #viral
AI Anytime
29 Get to Know Anthropic's Claude: The Ultimate ChatGPT Competitor
Get to Know Anthropic's Claude: The Ultimate ChatGPT Competitor
AI Anytime
30 #shorts #chatgpt #python #datascience #tech #coding
#shorts #chatgpt #python #datascience #tech #coding
AI Anytime
31 Recipe Generator App from Cooking Videos using Whisper and ChatGPT
Recipe Generator App from Cooking Videos using Whisper and ChatGPT
AI Anytime
32 Segment Anything Model by Meta AI: An Image Segmentation Model
Segment Anything Model by Meta AI: An Image Segmentation Model
AI Anytime
33 One of the best #ai #books based on #tensorflow. #tech #coding #shorts #chatgpt #machinelearning
One of the best #ai #books based on #tensorflow. #tech #coding #shorts #chatgpt #machinelearning
AI Anytime
34 Music Generation using Mubert #ai . #music #shorts #youtubeshorts #chatgpt #generativeai
Music Generation using Mubert #ai . #music #shorts #youtubeshorts #chatgpt #generativeai
AI Anytime
35 Image to Text Prompt: Reverse Engineering AI Image Generation
Image to Text Prompt: Reverse Engineering AI Image Generation
AI Anytime
36 Image Generation for #ramadan using #ai. #midjourney #chatgpt #shorts #youtubeshorts #islam
Image Generation for #ramadan using #ai. #midjourney #chatgpt #shorts #youtubeshorts #islam
AI Anytime
37 How to build an AI-ready organization: Cultivating a Data-Driven Culture
How to build an AI-ready organization: Cultivating a Data-Driven Culture
AI Anytime
38 Midjourney: Generate AI-powered Images
Midjourney: Generate AI-powered Images
AI Anytime
39 Getting Started with Graphs: A Beginner's Guide (Part 1 of GNN Series)
Getting Started with Graphs: A Beginner's Guide (Part 1 of GNN Series)
AI Anytime
40 Build India's First ChatGPT like App for Politics: BJP-GPT
Build India's First ChatGPT like App for Politics: BJP-GPT
AI Anytime
41 Meet BJP-GPT.... @AIAnytime  #bjp #news #shorts #tech #chatgpt #ai #youtubeshorts #coding #video
Meet BJP-GPT.... @AIAnytime #bjp #news #shorts #tech #chatgpt #ai #youtubeshorts #coding #video
AI Anytime
42 ChatPDF... #chatgpt  for PDF files. #ai #generativeai #shorts #youtubeshorts #coding #tech #ai
ChatPDF... #chatgpt for PDF files. #ai #generativeai #shorts #youtubeshorts #coding #tech #ai
AI Anytime
43 Free AI Image Generation #ai #chatgpt #coding #tech #shorts #youtubeshorts #shortvideo #generativeai
Free AI Image Generation #ai #chatgpt #coding #tech #shorts #youtubeshorts #shortvideo #generativeai
AI Anytime
44 Transform old photos into Vibrant Memories with Deoldify AI: Build a Streamlit App
Transform old photos into Vibrant Memories with Deoldify AI: Build a Streamlit App
AI Anytime
45 Open Assistant: The Real Open-sourced LLM
Open Assistant: The Real Open-sourced LLM
AI Anytime
46 Thanks to @YannicKilcherand team for the open sourced LLM Open Assistant. #ai #shorts #tech
Thanks to @YannicKilcherand team for the open sourced LLM Open Assistant. #ai #shorts #tech
AI Anytime
47 Search Engine for AI generated images. #ai #tech #technology #generativeai #chatgpt  #shorts #video
Search Engine for AI generated images. #ai #tech #technology #generativeai #chatgpt #shorts #video
AI Anytime
48 Generative AI Video Platform "Synthesia" #shorts #youtubeshorts #ai #tech #chatgpt #generativeai
Generative AI Video Platform "Synthesia" #shorts #youtubeshorts #ai #tech #chatgpt #generativeai
AI Anytime
49 Text to speech Voice AI platform. #shorts #youtubeshorts #ai #tech #technology #python #coding
Text to speech Voice AI platform. #shorts #youtubeshorts #ai #tech #technology #python #coding
AI Anytime
50 Create Amazing Videos with ChatGPT and Pictory: Free AI-powered Video Creation
Create Amazing Videos with ChatGPT and Pictory: Free AI-powered Video Creation
AI Anytime
51 Want to create beautiful video using #chatgpt and #pictory ? Watch the tutorial on channel. #ai
Want to create beautiful video using #chatgpt and #pictory ? Watch the tutorial on channel. #ai
AI Anytime
52 Animate your photos using AI. Bring old family photos to life. #ai #tech #shorts #shortvideo #coding
Animate your photos using AI. Bring old family photos to life. #ai #tech #shorts #shortvideo #coding
AI Anytime
53 Create a PDF Search and Summarization Tool in less than 100 Lines of Code: GPT-Index and Streamlit
Create a PDF Search and Summarization Tool in less than 100 Lines of Code: GPT-Index and Streamlit
AI Anytime
54 Text to Video Generation using Videocrafter: Intuitive Math behind Latent Diffusion Model
Text to Video Generation using Videocrafter: Intuitive Math behind Latent Diffusion Model
AI Anytime
55 Gamma AI: Create presentation PPT easily with #ai . #chatgpt #shorts #shortvideo #tech #coding
Gamma AI: Create presentation PPT easily with #ai . #chatgpt #shorts #shortvideo #tech #coding
AI Anytime
56 Tripnotes: Free AI tools for your trip planning. #ai #chatgpt #shorts #youtubeshorts #video
Tripnotes: Free AI tools for your trip planning. #ai #chatgpt #shorts #youtubeshorts #video
AI Anytime
57 Meet Bark (New Text to Speech Model): Clone Any Voice to Generate Music and Speech
Meet Bark (New Text to Speech Model): Clone Any Voice to Generate Music and Speech
AI Anytime
58 Fliki: The free AI video creation tool. #ai #shorts #shortvideo #youtubeshorts #chatgpt #tech #news
Fliki: The free AI video creation tool. #ai #shorts #shortvideo #youtubeshorts #chatgpt #tech #news
AI Anytime
59 Ask Anything Tool: Chat with Your Video using ChatGPT, MiniGPT4, and StableLM
Ask Anything Tool: Chat with Your Video using ChatGPT, MiniGPT4, and StableLM
AI Anytime
60 HuggingChat: Open Source ChatGPT (Interface and Model)
HuggingChat: Open Source ChatGPT (Interface and Model)
AI Anytime

This video teaches testing a trained AI model on Teachable Machine, a low code/no code platform, and demonstrates how to use an exported model for testing purposes. It is useful for beginners in AI development who want to explore low code/no code options.

Key Takeaways
  1. Access Teachable Machine
  2. Export a trained model
  3. Test the model on Teachable Machine
  4. Evaluate model performance
  5. Refine the model as needed
💡 Low code/no code AI platforms like Teachable Machine can simplify AI model testing and deployment.

Related AI Lessons

You Are Not Behind. The World Is.
You're not behind, the world is still adapting to AI, and it's okay to take your time to learn and grow
Medium · AI
Career choice with the advent of AI - pure Computer Science or learn software with a background of core engineering area
Learn how to choose between a Computer Science and Engineering career path or combining programming with a core engineering background in the age of AI
Dev.to AI
The AI Hype Cycle: Calm Before the Next Breakthrough?
Understand the AI hype cycle to anticipate the next breakthrough and make informed decisions
Medium · Programming
AI won’t replace scientists. It will make the current model of science obsolete
AI is not replacing scientists, but rather making the current model of science obsolete, enabling new forms of discovery and collaboration
Medium · Data Science
Up next
Motorist saved by human chain | 9 News Australia
9 News Australia
Watch →