How to import a pretrained deeplabv3+(xception-71 as backbone) model using MATLAB function importNetw​orkFromTen​sorFlow?

34 views (last 30 days)
In the help document for importNetworkFromTensorFlow function, the argument is a model folder, and the model folder must include saved_model file with the .pb extension and the learned weights in the variables subfolder.
But in the "TensorFlow DeepLab Model Zoo - GitHub", the downloaded folder does not appear to include saved_model.pb and variables subfolder.
Where can I download the required model folder?

Answers (1)

Sivylla Paraskevopoulou
Sivylla Paraskevopoulou on 4 Oct 2023
Hi Chen, you don't need to import the DeepLab v3+ model from TensorFlow. You can use the deeplabv3plusLayers function to create aDeepLab v3+ model for image segmentation in MATLAB. Set the name-value argument network as 'xception' to define the base network.
  1 Comment
Chen Xinbing
Chen Xinbing on 6 Oct 2023
Edited: Chen Xinbing on 13 Oct 2023
Thanks very much!
I have studied the source code of function deeplabv3plusLayers using argument 'xception', I find out that the function deeplabv3plusLayers only returns xception-41 network architecture. (Inside deeplabv3plusLayers's source code, it uses function xception() to return a pre-trained xception-41 network. To execute MATLAB code "analyzeNetwork(layerGraph(xception()))" can confirm the fact.) But I want to use xception-65/71 as the backbone of deeplabv3+, so the function deeplabv3plusLayers does not appear to satisfy my purpose.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!