densenet264 pretrained network loading problem

9 views (last 30 days)
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

Answers (1)

Prasanna
Prasanna on 9 Jun 2025
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!

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!