densenet264 pretrained network loading problem

조회 수: 3 (최근 30일)
Asif Mehmood
Asif Mehmood 2019년 11월 14일
답변: Prasanna 2025년 6월 9일
hi all i am loading densenet264 as 'net=densenet264' but is gives me the error "Undefined function or variable 'densenet264'."
i have already used it for densenet201 but it work fine
thanks in anticipation

답변 (1개)

Prasanna
Prasanna 2025년 6월 9일
Hi Asif,
The issue you're encountering likely stems from the fact that densenet201 is a built-in pretrained model available directly in the Deep Learning Toolbox Model for ResNet Network support package, whereas densenet264 is not included in the supported list of pretrained networks.
If you specifically need DenseNet-264, you will need to either:
  • Manually define the architecture using layerGraph and construct the network based on the original DenseNet-264 configuration from the research paper.
  • Import a pretrained DenseNet-264 model from an external source like TensorFlow, PyTorch, or ONNX, and convert it using the Deep Learning Toolbox Converter for ONNX Model Format, assuming you can get the model in ONNX format.
In conclusion, densenet264 is not available as a pretrained model , which is why you get the "undefined function" error. You may continue using available networks like densenet201, or construct/import DenseNet-264 manually. For more information, you can refer to:
Hope this helps!

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by