why exportONNXNetwork will add additional "Sub" in onnx, how to remove this layer in onnx?

3 ビュー (過去 30 日間)
owen chang
owen chang 2019 年 9 月 4 日
回答済み: Don Mathis 2019 年 9 月 9 日
Hi, i did the following:
>> baseNetwork = resnet50;
>> exportONNXNetwork(baseNetwork,'resnet50-matlab');
but when compare same model in Deep Network Designer and Netron (onnx reader), i found there is additional "Sub" in generated onnx
resnet50-matlab.JPG
then i download the official resnet50 from onnx github, there are no "Sub"
resnet50-github.JPG
this Sub will cause some issue in my enviroment, how to remove it? also is it a bug or why this Sub exist? thanks
Regards,
Owen

回答 (1 件)

Don Mathis
Don Mathis 2019 年 9 月 9 日
The Sub operator is subtracting the mean image from the raw image input.

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

タグ

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by