Contenuto principale

Reti preaddestrate da piattaforme esterne

Importare reti preaddestrate da piattaforme esterne di Deep Learning

Importare reti neurali da TensorFlow™ 2, TensorFlow-Keras, Keras 3, PyTorch®, il formato di modello ONNX™ (Open Neural Network Exchange) e Caffe. È possibile importare le reti in modo interattivo utilizzando l'app Deep Network Designer o le funzioni dalla riga di comando. L'app genera un report di importazione che include informazioni sull'importazione e su eventuali azioni richieste. Per ulteriori informazioni, vedere Reti neurali profonde preaddestrate e Interoperability Between Deep Learning Toolbox, TensorFlow, PyTorch, and ONNX.

Per eseguire le funzioni di importazione in Deep Learning Toolbox™ è necessario disporre dei pacchetti di supporto. Se il pacchetto di supporto non è installato, ciascuna funzione fornisce un link per il download del pacchetto di supporto corrispondente nell'Add-On Explorer. Si consiglia di scaricare il pacchetto di supporto nella posizione predefinita per la versione MATLAB® in uso. È inoltre possibile scaricare direttamente i pacchetti di supporto dai seguenti link.

Diagram showing the interoperability between Deep Learning Toolbox, TensorFlow, ONNX, and PyTorch.

App

Deep Network DesignerProgettare e visualizzare reti di Deep Learning

Funzioni

espandi tutto

Importazione TensorFlow

importNetworkFromTensorFlowImport TensorFlow network as MATLAB network (Da R2023b)
importNetworkFromKerasImport Keras 3 network as MATLAB network (Da R2026a)

Importazione PyTorch

importNetworkFromPyTorchImport PyTorch network as MATLAB network (Da R2022b)

Importazione Caffe

importCaffeNetworkImport pretrained convolutional neural network models from Caffe
importCaffeLayersImport convolutional neural network layers from Caffe

Importazione ONNX

importNetworkFromONNXImport ONNX network as MATLAB network (Da R2023b)

Parametri importati da importONNXFunction

ONNXParametersParameters of imported ONNX network for deep learning
freezeParametersConvert learnable network parameters in ONNXParameters to nonlearnable
unfreezeParametersConvert nonlearnable network parameters in ONNXParameters to learnable
addParameterAdd parameter to ONNXParameters object
removeParameterRemove parameter from ONNXParameters object
dlnetworkRete neurale di Deep Learning
functionLayerFunction layer (Da R2021b)
replaceLayerReplace layer in neural network
addLayersAdd layers to neural network
removeLayersRemove layers from neural network

Argomenti

Importazione

Esecuzione simultanea di Python

Livelli personalizzati