Training models faster with TensorFlow Hub (TensorFlow Meets)

TensorFlow · Beginner ·👁️ Computer Vision ·7y ago

Key Takeaways

The video discusses TensorFlow Hub, a new way to share reusable components called modules, which can be used for image and text classification, and can be composed, reused, and retrained. The modules are accessible via a URL and can be used in one line of code.

Full Transcript

[Music] hi everybody we're here at the tents flow developer summit at the tensorflow cafe and I'm chatting with Andrew Gasper ovitch from tensor flow hub and you announced tensorflow hub today can you tell us all about it yeah so tensorflow hub is the new way to share what we're calling modules which is meant to be a reusable component so it's a little bit less than a model it's just the reusable portion okay but it is the graph the weights and potentially any assets that come with it so it's all packaged up into a component that makes it easy to share in just one line of code and one line of code yeah yeah that was a requirement from the beginning actually no more than one line of code where do you go from here off a lot of code yeah yeah well I guess the natural zero that's next year now one of the things you mentioned in your talk was about these modules being composable reusable and retrain of all could yes that's true that composable for us yeah so composable just means that you can do things like add your own classification so if you're talking about an image mod module it doesn't include the classification from the model so that is something that you can compose with what you're building in the case of text classification that may be something like an embedding module okay and then in other cases we also want to have just general-purpose modules that you can compose around almost like functions that you can call together and make building blocks for an entire model I say so so if I have a model that I don't know for example of doing OCR in an image and but it can also tag things within that image what saying is I could break out the OCR part and I could break out the tagging part and compose them into something new yeah absolutely absolutely and that's gonna be something really interesting to see what develops in the community over time just the ways of putting things together and sort of modules that people end up ryeol yeah so it's we're providing building all the communities providing building blocks yes we have we have a number of modules to start with and they're very general-purpose things doing you know image classification doing text classification we have those embedding modules but I think that over time what the community can contribute is what really will be interesting sounds great so we've mentioned that there composable and then reusable reusable just means that you can basically take something that already exists and apply it to your own particular problem makes perfect sense yeah and then I'm really interested in retraining below I mean we speak a lot about the attentive love for poets where you can retrain the final layer to make it flowers instead of general damages and is it to do a similar thing Gaudi yes yeah definitely so there is you know the classic sort of transfer learning case there where you would take an image classification module just up to the feature vectors and then retrain your own classification on top to do things but you know you can also go deeper than that you can start retraining text embedding modules and the thing about TF hub is that you can actually do fine-tuning and Retraining inside the module itself so if you have enough data you can actually turn on retraining inside the module because it's just a graph with the weights so you know you can really get better results because it's not just something that's static it's something that you can really include in your own model sounds good now in your talk you showed this for like classifying rabbits yes yeah yeah and you had that one picture of a rabbit which I think is the best picture of any in the entire day so we have to cut to that and show it's a beautiful yeah so tell us what did you do in that demo in the demo we basically just it's the same ideas the tensorflow for poets we start with a general purpose image classification model just up to the feature vectors and in the particular demo example we were classifying rabbits maybe including the Easter Bunny and you know we added our own classification on top and we fed in all of our own training examples and the end result is that you get something that is special to your task but includes all of the benefits of the general-purpose model nice it's kind of fun yeah how was accurate was at detecting rabbits it's very accurate we'll have to see how it works with the Easter Bunny but you didn't put the Easter Bunny in your test next year so so if I'm a developer and I want to build like I'm maybe I'm an expert in rabbit detection and you know and I want to build like a custom model and I want to contribute this into tensorflow hub how would I go about doing that well that's something that we're really excited to work on over the next few months right now a module is accessible via any URL and so you can host a module and you can use it in that one line of code but we want to create a platform where people can go and find modules for all sorts of different topics and have that one central place that you always know that you can get really high quality stuff in a variety of different areas and is there like some kind of curation that's something it remains to be you know seeing specifically what we're gonna do but we want to be able to open it up to it as wide a group of people as possible sounds good so where can I find this again it's tensorflow org slash hub tensorflow org slash hub I keep saying tensorflow hub / org we should remain tensorflow org slash hub yeah you know go check it out so thank you so much Andrew thank you it's been really fun and I love that slide okay so thanks everybody for watching this episode if you got any questions for me or if you have any questions for Andrew please leave them in the comments below and all of the links that we spoke about today will put in the text description so thank you so much and don't forget to hit that subscribe button [Music] you

Original Description

Laurence sits down to chat with Andrew Gasparovic, Software Engineer on TensorFlow Hub. They discuss the image classification and text classification modules that are currently available, and talk about how modules are composable, reusable, and retrainable. But what exactly does that mean? Watch to find out in this episode of TensorFlow Meets. Learn more about TensorFlow Hub → http://bit.ly/2uo1Csw TensorFlow Hub blog article → http://bit.ly/2JyMCO3 TensorFlow Hub talk at TensorFlow Dev Summit ‘18 → http://bit.ly/2uBFRXp TensorFlow Meets playlist → http://bit.ly/2lbyLDK Subscribe to the TensorFlow channel → http://bit.ly/TensorFlow1
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from TensorFlow · TensorFlow · 57 of 60

1 The TensorFlow YouTube Channel is Here!
The TensorFlow YouTube Channel is Here!
TensorFlow
2 Answering Your TF Questions #AskTensorFlow
Answering Your TF Questions #AskTensorFlow
TensorFlow
3 Chatting With the TensorFlow Community (TensorFlow Meets)
Chatting With the TensorFlow Community (TensorFlow Meets)
TensorFlow
4 All About TensorFlow Code (Coding TensorFlow)
All About TensorFlow Code (Coding TensorFlow)
TensorFlow
5 TensorFlow: an ML platform for solving impactful and challenging problems
TensorFlow: an ML platform for solving impactful and challenging problems
TensorFlow
6 Keynote (TensorFlow Dev Summit 2018)
Keynote (TensorFlow Dev Summit 2018)
TensorFlow
7 tf.data: Fast, flexible, and easy-to-use input pipelines (TensorFlow Dev Summit 2018)
tf.data: Fast, flexible, and easy-to-use input pipelines (TensorFlow Dev Summit 2018)
TensorFlow
8 Eager Execution (TensorFlow Dev Summit 2018)
Eager Execution (TensorFlow Dev Summit 2018)
TensorFlow
9 Machine Learning in JavaScript (TensorFlow Dev Summit 2018)
Machine Learning in JavaScript (TensorFlow Dev Summit 2018)
TensorFlow
10 Training Performance: A user’s guide to converge faster (TensorFlow Dev Summit 2018)
Training Performance: A user’s guide to converge faster (TensorFlow Dev Summit 2018)
TensorFlow
11 The Practitioner's Guide with TF High Level APIs (TensorFlow Dev Summit 2018)
The Practitioner's Guide with TF High Level APIs (TensorFlow Dev Summit 2018)
TensorFlow
12 Distributed TensorFlow (TensorFlow Dev Summit 2018)
Distributed TensorFlow (TensorFlow Dev Summit 2018)
TensorFlow
13 Debugging TensorFlow with TensorBoard plugins (TensorFlow Dev Summit 2018)
Debugging TensorFlow with TensorBoard plugins (TensorFlow Dev Summit 2018)
TensorFlow
14 TensorFlow Lite (TensorFlow Dev Summit 2018)
TensorFlow Lite (TensorFlow Dev Summit 2018)
TensorFlow
15 Searching Over Ideas (TensorFlow Dev Summit 2018)
Searching Over Ideas (TensorFlow Dev Summit 2018)
TensorFlow
16 Reconstructing Fusion Plasmas (TensorFlow Dev Summit 2018)
Reconstructing Fusion Plasmas (TensorFlow Dev Summit 2018)
TensorFlow
17 Nucleus: TensorFlow toolkit for Genomics (TensorFlow Dev Summit 2018)
Nucleus: TensorFlow toolkit for Genomics (TensorFlow Dev Summit 2018)
TensorFlow
18 Open Source Collaboration (TensorFlow Dev Summit 2018)
Open Source Collaboration (TensorFlow Dev Summit 2018)
TensorFlow
19 Swift for TensorFlow - TFiwS (TensorFlow Dev Summit 2018)
Swift for TensorFlow - TFiwS (TensorFlow Dev Summit 2018)
TensorFlow
20 TensorFlow Hub (TensorFlow Dev Summit 2018)
TensorFlow Hub (TensorFlow Dev Summit 2018)
TensorFlow
21 Applied AI at The Coca-Cola Company (TensorFlow Dev Summit 2018)
Applied AI at The Coca-Cola Company (TensorFlow Dev Summit 2018)
TensorFlow
22 Real-World Robot Learning (TensorFlow Dev Summit 2018)
Real-World Robot Learning (TensorFlow Dev Summit 2018)
TensorFlow
23 TensorFlow Extended (TFX) (TensorFlow Dev Summit 2018)
TensorFlow Extended (TFX) (TensorFlow Dev Summit 2018)
TensorFlow
24 Project Magenta (TensorFlow Dev Summit 2018)
Project Magenta (TensorFlow Dev Summit 2018)
TensorFlow
25 TensorFlow Dev Summit 2018 - Livestream
TensorFlow Dev Summit 2018 - Livestream
TensorFlow
26 Introducing TensorFlow Lite (Coding TensorFlow)
Introducing TensorFlow Lite (Coding TensorFlow)
TensorFlow
27 TensorFlow Dev Summit 2018 Highlights
TensorFlow Dev Summit 2018 Highlights
TensorFlow
28 Jeff Dean, Head of AI at Google discusses the impact of ML (TensorFlow Meets)
Jeff Dean, Head of AI at Google discusses the impact of ML (TensorFlow Meets)
TensorFlow
29 TensorFlow Mobile vs. TF Lite and More! #AskTensorFlow
TensorFlow Mobile vs. TF Lite and More! #AskTensorFlow
TensorFlow
30 Using TensorFlow to enable research & production across many fields (TensorFlow Meets)
Using TensorFlow to enable research & production across many fields (TensorFlow Meets)
TensorFlow
31 Teaching TensorFlow for Deep Learning at Stanford University (TensorFlow Meets)
Teaching TensorFlow for Deep Learning at Stanford University (TensorFlow Meets)
TensorFlow
32 TensorFlow Lite for Android (Coding TensorFlow)
TensorFlow Lite for Android (Coding TensorFlow)
TensorFlow
33 Using the tf.data API to build input pipelines (TensorFlow Meets)
Using the tf.data API to build input pipelines (TensorFlow Meets)
TensorFlow
34 Training Models in the Cloud & the Benefits of AI Toolkits #AskTensorFlow
Training Models in the Cloud & the Benefits of AI Toolkits #AskTensorFlow
TensorFlow
35 Execute operations immediately with TensorFlow's Eager Execution (TensorFlow Meets)
Execute operations immediately with TensorFlow's Eager Execution (TensorFlow Meets)
TensorFlow
36 TensorFlow Lite for iOS (Coding TensorFlow)
TensorFlow Lite for iOS (Coding TensorFlow)
TensorFlow
37 Get started with TensorFlow's High-Level APIs (Google I/O '18)
Get started with TensorFlow's High-Level APIs (Google I/O '18)
TensorFlow
38 TensorFlow for JavaScript (Google I/O '18)
TensorFlow for JavaScript (Google I/O '18)
TensorFlow
39 TensorFlow in production: TF Extended, TF Hub, and TF Serving (Google I/O '18)
TensorFlow in production: TF Extended, TF Hub, and TF Serving (Google I/O '18)
TensorFlow
40 Get started with TensorFlow's High-Level APIs in 5 mins |  Google I/O 2018
Get started with TensorFlow's High-Level APIs in 5 mins | Google I/O 2018
TensorFlow
41 TensorFlow and deep reinforcement learning, without a PhD (Google I/O '18)
TensorFlow and deep reinforcement learning, without a PhD (Google I/O '18)
TensorFlow
42 TensorFlow Lite for mobile developers (Google I/O '18)
TensorFlow Lite for mobile developers (Google I/O '18)
TensorFlow
43 Advances in machine learning and TensorFlow (Google I/O '18)
Advances in machine learning and TensorFlow (Google I/O '18)
TensorFlow
44 Distributed TensorFlow training (Google I/O '18)
Distributed TensorFlow training (Google I/O '18)
TensorFlow
45 Classification using neural networks & ML regression models #AskTensorFlow
Classification using neural networks & ML regression models #AskTensorFlow
TensorFlow
46 TensorFlow and Keras in R - Josh Gordon meets with J.J. Allaire (TensorFlow Meets)
TensorFlow and Keras in R - Josh Gordon meets with J.J. Allaire (TensorFlow Meets)
TensorFlow
47 Focus on your experiment with TensorFlow Estimators (TensorFlow Meets)
Focus on your experiment with TensorFlow Estimators (TensorFlow Meets)
TensorFlow
48 How to get started with AI/ML, retraining models, & more! #AskTensorFlow
How to get started with AI/ML, retraining models, & more! #AskTensorFlow
TensorFlow
49 TensorFlow - the deep learning solution for mobile platforms (TensorFlow Meets)
TensorFlow - the deep learning solution for mobile platforms (TensorFlow Meets)
TensorFlow
50 MiniGo: TensorFlow Meets Andrew Jackson (TensorFlow Meets)
MiniGo: TensorFlow Meets Andrew Jackson (TensorFlow Meets)
TensorFlow
51 The growth of TensorFlow with added support for JS & Swift (TensorFlow Meets)
The growth of TensorFlow with added support for JS & Swift (TensorFlow Meets)
TensorFlow
52 At the intersection of TensorFlow & nuclear physics (TensorFlow Meets)
At the intersection of TensorFlow & nuclear physics (TensorFlow Meets)
TensorFlow
53 NVidia TensorRT: high-performance deep learning inference accelerator (TensorFlow Meets)
NVidia TensorRT: high-performance deep learning inference accelerator (TensorFlow Meets)
TensorFlow
54 Try TensorFlow.js in your browser (Coding TensorFlow)
Try TensorFlow.js in your browser (Coding TensorFlow)
TensorFlow
55 TensorFlow Hub: reusing machine learning modules (TensorFlow Meets)
TensorFlow Hub: reusing machine learning modules (TensorFlow Meets)
TensorFlow
56 How to use TensorFlow in PyCharm (TensorFlow Tip of the Week)
How to use TensorFlow in PyCharm (TensorFlow Tip of the Week)
TensorFlow
Training models faster with TensorFlow Hub (TensorFlow Meets)
Training models faster with TensorFlow Hub (TensorFlow Meets)
TensorFlow
58 Prepare your dataset for machine learning (Coding TensorFlow)
Prepare your dataset for machine learning (Coding TensorFlow)
TensorFlow
59 Using ML to predict insulin use for Type 1 Diabetes (TensorFlow Meets)
Using ML to predict insulin use for Type 1 Diabetes (TensorFlow Meets)
TensorFlow
60 TFX: an end-to-end machine learning platform for TensorFlow (TensorFlow Meets)
TFX: an end-to-end machine learning platform for TensorFlow (TensorFlow Meets)
TensorFlow

TensorFlow Hub provides a way to share and reuse machine learning modules for image and text classification, allowing for easy composition and retraining of models. The modules can be accessed via a URL and used in one line of code, making it easy to integrate pre-trained models into custom applications.

Key Takeaways
  1. Access TensorFlow Hub modules via a URL
  2. Use a module in one line of code
  3. Compose modules to create custom models
  4. Retrain modules for specific tasks
💡 TensorFlow Hub allows for easy sharing and reuse of machine learning modules, enabling developers to quickly build and deploy custom models

Related Reads

📰
The Role of 3D Cuboid Annotation in Autonomous Vehicle Perception
Learn how 3D cuboid annotation enables autonomous vehicles to perceive their environment accurately, and why it's crucial for safe navigation, with steps to apply this knowledge in practice.
Dev.to AI
📰
Vision AI: Transforming Business Operations with Computer Vision AI
Learn how Vision AI transforms business operations with computer vision, and why it matters for companies to leverage video data
Medium · AI
📰
Vision AI: Transforming Business Operations with Computer Vision AI
Learn how Vision AI transforms business operations with computer vision AI, enabling companies to extract valuable insights from camera videos
Medium · Machine Learning
📰
Cloud-Optimized OpenCV + A Special Surprise Announcement on OpenCV Live
Learn about Cloud-Optimized OpenCV for faster computer vision computations and a special announcement on OpenCV Live
OpenCV Blog
Up next
Marketing management for ugc net| Important topics of marketing management ugc net commerce dec 2023
Bhoomi Learning Centre~Dr. Muskan
Watch →