How to import pretrained models with multiple outputs to MATLAB?

1 回表示 (過去 30 日間)
Amin Assadzadeh
Amin Assadzadeh 2019 年 10 月 20 日
回答済み: Shashank Gupta 2019 年 12 月 9 日
I'm trying to import pretrained detector networks (e.g. YOLOv3 and Faster R-CNN) in ONNX or Keras formats using importONNXNetwork and importKerasNetwork functions, but I'm getting the error that models with multiple outputs are not supported yet?
Is there a way around this?
Any help will be much appreciated!

回答 (1 件)

Shashank Gupta
Shashank Gupta 2019 年 12 月 9 日
Hi Amin,
The issue which you mentioned is a known issue and the concerned team is working on it.
One thing that can be tried although I haven’t done it personally. Before importing the model to MATLAB environment, try adding a dummy layer with a dummy weight with just one output and after importing, remove the added layer and get back your original model architecture. I am not sure weather this will work but still worth giving a shot.
Hope this helps.

カテゴリ

Help Center および File ExchangePattern Recognition and Classification についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by