Loading Pretrained 'EfficientDet' Network

5 ビュー (過去 30 日間)
Avivit
Avivit 2024 年 3 月 28 日
コメント済み: Venu 2024 年 4 月 1 日
Hello, I was going through examples from the deep learning toolbox when I ran into an issue specifically with the 'EfficientDet-D0' model from https://github.com/matlab-deep-learning/pretrained-efficientdet-d0
model = helper.downloadPretrainedEfficientDetD0;
From the above, I should be able to access the dlnetwork object 'net' from the model, but I get the following response:
In helper.downloadPretrainedEfficientDetD0 (line 24)
Warning: Unable to load instances of class nnet.onnx.layer.ElementwiseAffineLayer into a heterogeneous array. The definition of
nnet.onnx.layer.ElementwiseAffineLayer could be missing or contain an error. Default objects will be substituted.
Dot indexing is not supported for variables of this type.
Error in dlnetwork/isQuantized (line 1417)
b = this.PrivateNetwork.isQuantized();
Error in deep.internal.quantization.QuantizedNetworkDisplay/mixinQuantizedNetworkHeader (line 23)
strategy = net.getStrategy(isQuantized(net));
Error in dlnetwork/getHeader (line 1427)
header = this.mixinQuantizedNetworkHeader(header, className);
I don't see why dot indexing would be an issue here, is there anything I missed that could be causing this? I am using Matlab version 2023b .
Many thanks in advance.
  1 件のコメント
Venu
Venu 2024 年 4 月 1 日
Try reinstalling the Deep Learning Toolbox Converter for ONNX Model Format Support Package

サインインしてコメントする。

回答 (1 件)

prabhat kumar sharma
prabhat kumar sharma 2024 年 4 月 1 日
Hi Avivit,
I understand you're encountering issues with downloading the pretrained EfficientNetB0 model for object detection or transfer learning tasks in MATLAB. Here are steps to address the issue:
  1. Ensure your MATLAB version is R2020b or newer for compatibility.
  2. Verify the ONNX Support Package installation with:
if isempty(which('importONNXNetwork'))
disp('ONNX support package is not installed.');
else
disp('ONNX support package is installed.');
end
3.If not installed, add it via the Add-On Explorer in MATLAB or execute:
onnxsupportpackage.install
4.Attempt to load your model using the imagePretrainedNetwork function.
For further guidance, the following resources may be helpful:
I hope it helps!

カテゴリ

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

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by