Loading Pretrained 'EfficientDet' Network

7 visualizzazioni (ultimi 30 giorni)
Avivit
Avivit il 28 Mar 2024
Commentato: Venu il 1 Apr 2024
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 Commento
Venu
Venu il 1 Apr 2024
Try reinstalling the Deep Learning Toolbox Converter for ONNX Model Format Support Package

Accedi per commentare.

Risposte (1)

prabhat kumar sharma
prabhat kumar sharma il 1 Apr 2024
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!

Categorie

Scopri di più su Deep Learning Toolbox in Help Center e File Exchange

Prodotti


Release

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by