Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

How to use your trained model - Deep Learning basics with Python, TensorFlow and Keras p.6

225.1K views
•
August 31, 2018
by
sentdex
YouTube video player
How to use your trained model - Deep Learning basics with Python, TensorFlow and Keras p.6

TL;DR

Learn how to use a trained deep learning model to make predictions on new images.

Transcript

what is going on everybody and welcome to part 6 of the deep learning in Python with tens flow and caris tutorial series in this video we're going to be talking about how do I use my model so a lot of people have been asking ok great we trained and tested our you know data set or whatever but like ok I've got some outside images how do I use these ... Read More

Key Insights

  • 🏆 Training and testing a deep learning model is crucial before using it for predictions.
  • 👶 Preprocessing new images involves resizing, grayscale conversion, and reshaping.
  • 👤 Loading a trained model in Tensorflow can now be done without defining it first, making the process more user-friendly.
  • 👂 The predict function in Tensorflow returns a list of predictions, which can be converted to integers and mapped to corresponding labels.
  • ⚖️ It's important to assess the accuracy and balance of predictions made by the model before using it in production.
  • 💨 The predict function is fast, especially when only predicting without loading the model each time.
  • 😒 There are options to batch predictions or use TensorFlow Serving for scalable production deployment.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: How can I make predictions on new images using a trained deep learning model?

To make predictions, you need to import the required libraries, preprocess the new images, load the trained model, and pass the preprocessed images through the model's predict function.

Q: Do I need to define the model before loading it in Tensorflow?

No, in Tensorflow's Keras API, you can directly load the model without defining it beforehand. This makes the process more convenient.

Q: What type of image preprocessing is required before making predictions?

The tutorial suggests resizing the image to a specified size (e.g., 70x70), converting it to grayscale, and reshaping it to match the input dimensions required by the model.

Q: What is the significance of using a one hot array for categorical classifications?

Previously, one hot arrays were used for categorical classifications. However, now it is possible to use sparse scalar classifications, which simplifies the code and eliminates the need for additional steps like NP argmax.

Summary & Key Takeaways

  • This video tutorial focuses on using a pre-trained deep learning model for making predictions on new images.

  • The tutorial covers how to import the necessary libraries, preprocess the images, load the model, and make predictions.

  • The video explains the process step-by-step and provides code examples for better understanding.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from sentdex 📚

How to Parse Twitter for Twitter Analysis: Part 1 thumbnail
How to Parse Twitter for Twitter Analysis: Part 1
sentdex
How to Train a Chatbot Using TensorFlow and Python thumbnail
How to Train a Chatbot Using TensorFlow and Python
sentdex
Python Generator Functions for massive Performance Improvements with Lists thumbnail
Python Generator Functions for massive Performance Improvements with Lists
sentdex
Python: How to Program the Chaikin Money Flow Trading Indicator thumbnail
Python: How to Program the Chaikin Money Flow Trading Indicator
sentdex
Python: How to Graph the Chaikin Money Flow Trading Indicator in Matplotlib thumbnail
Python: How to Graph the Chaikin Money Flow Trading Indicator in Matplotlib
sentdex
Parsing XML - Go Lang Practical Programming Tutorial p.11 thumbnail
Parsing XML - Go Lang Practical Programming Tutorial p.11
sentdex

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.