MATLAB With TensorFlow and PyTorch (TechSource)
MATLAB With TensorFlow and PyTorch (TechSource)
1
Questions MATLAB users are asking about deep learning…
2
How MATLAB (and Simulink) is answering these questions…
3
The focus of today’s session is to show how:
4
There are two ways MATLAB can work with TensorFlow and
PyTorch
5
Converting TensorFlow & PyTorch models into MATLAB
6
Interoperability is part of the AI System Design Workflow
Hardware
Human insight System simulation Enterprise systems
accelerated training
7 7
Interoperability is part of the AI System Design Workflow
Hardware
Human insight System simulation Enterprise systems
accelerated training
8 8
MATLAB has model converters for TensorFlow, PyTorch and
ONNX
9
Mitsui Chemicals Deploys AI and Automation Systems with TensorFlow
and MATLAB
Challenge
Automate visual inspection of sheet-shaped products and
ensure ease of use and maintenance of the deployed
model
Solution
Import the trained TensorFlow-Keras model into MATLAB
using an importer, create a user interface, and deploy it in Model development with Python (TensorFlow-Keras)
the field as an application and efficient onsite implementation of models with
MATLAB.
Key Outcomes
▪ Reduced visual inspection time by 80%
“MATLAB solved our problems on the field
▪ Effectively used models trained in other frameworks implementation and saved development time. That
▪ Deployed application with a user interface that anyone led to highly accurate development.”
can use - Shintaro Maekawa, Mitsui Chemicals, Inc.
https://github.com/matlab-deep-learning/MATLAB-Deep-Learning-Model-Hub 11
The TensorFlow model converter can import and export
networks to and from MATLAB
There are two examples to highlight:
>> importTensorFlowNetwork
>> exportNetworkToTensorflow
* Export released in
* Newly released in
15
Things you need to consider before using model conversion
16
Co-executing TensorFlow & PyTorch with MATLAB
17
Co-execution allows:
18
1. Co-execution with MATLAB, TensorFlow or PyTorch
19
MATLAB + TensorFlow co-execution
DEMO 2
20
But there are challenges with co-execution
21
Support for TensorFlow Lite
In both MATLAB and Simulink, for simulation and deployment
23
Comparison of Models accessible in MATLAB
24
Links for getting started
▪ Model Conversion
– Deep Learning Import and Export
▪ Co-execution
– Image Classification in MATLAB Using TensorFlow
25
26
© 2022 The MathWorks, Inc.
27
MORE THAN 54 COURSES
TAUGHT BY EXPERTS
CERTIFICATE OF
COMPLETION
For more info, visit https://www.techsource-asia.com/training-calendar/
28
29
30
31
32