coder.loadDeepLearningNetwork
Load deep learning network model
Syntax
Description
loads a pretrained deep learningnet
= coder.loadDeepLearningNetwork(filename
)SeriesNetwork
(Deep Learning Toolbox),DAGNetwork
(Deep Learning Toolbox),yolov2ObjectDetector
(Computer Vision Toolbox), orssdObjectDetector
(Computer Vision Toolbox)object saved in thefilename
MAT-file.filename
must be a valid MAT-file existing on the MATLAB®path containing a singleSeriesNetwork
,DAGNetwork
,yolov2ObjectDetector
, orssdObjectDetector
object. The MAT-file must contain only the network to be loaded.
calls a function that returns a pretrained deep learningnet
= coder.loadDeepLearningNetwork(functionname
)SeriesNetwork
,DAGNetwork
,yolov2ObjectDetector
, orssdObjectDetector
object.functionname
must be the name of a function existing on the MATLAB path that returns aSeriesNetwork
,DAGNetwork
,yolov2ObjectDetector
, orssdObjectDetector
object.
is the same asnet
= coder.loadDeepLearningNetwork(___,network_name
)net = coder.loadDeepLearningNetwork(filename)
with the option to name the C++ class generated from the network.network_name
is a descriptive name for the network object saved in the MAT-file or pointed to by the function. The network name must be a字符
type that is a valid identifier in C++.
使用这个函数when generating code from a network object inference. This function generates a C++ class from this network. The class name is derived from the MAT-file name or the function name.
Note
The input argument ofcoder.loadDeepLearningNetwork
must be a compile-time constant.
Examples
Input Arguments
Output Arguments
Limitations
coder.loadDeepLearningNetwork
does not support loading MAT-files with multiple networks.The MAT-file must contain only the network to be loaded.
Extended Capabilities
Version History
See Also
Functions
Objects
SeriesNetwork
(Deep Learning Toolbox)|DAGNetwork
(Deep Learning Toolbox)|yolov2ObjectDetector
(Computer Vision Toolbox)|ssdObjectDetector
(Computer Vision Toolbox)