Loading Pretrained 'EfficientDet' Network
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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
I ran the following from the README.md at: https://github.com/matlab-deep-learning/pretrained-efficientdet-d0/blob/main/README.md
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 comentario
Venu
el 1 de Abr. de 2024
HI @Avivit
Try reinstalling the Deep Learning Toolbox Converter for ONNX Model Format Support Package
Respuestas (1)
prabhat kumar sharma
el 1 de Abr. de 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:
- Ensure your MATLAB version is R2020b or newer for compatibility.
- 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!
0 comentarios
Ver también
Categorías
Más información sobre Deep Learning Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!