Grad-CAM function listing "Not enough input arguments"

5 ビュー (過去 30 日間)
Krystian Perez
Krystian Perez 2022 年 7 月 13 日
回答済み: Shreshth 2025 年 1 月 17 日
Good afternoon all,
I am trying to use Grad-CAM to evaluate a NN that I have trained. That being said, if I try to use the function it tells me "not enough input arguments", including if I copy the golden retriever example here line for line. Anyone else having the same issue or have a recommendation for why it isn't working? Thanks!

回答 (1 件)

Shreshth
Shreshth 2025 年 1 月 17 日
Hi Krystian,
As per my understanding, you would like to use “gradCAM” function to evaluate a Neural Network (NN).
I have tried the examples in the link provided in the question, but I am not able to reproduce the issue at my end. “gradCAM” function takes 3 parameters, as follows:
• net: Trained Neural Network
• X: Input data
• label: True class labels
Please refer to the following MathWorks documentation for more information on “gradCAM” function:
I hope this resolves the issue you were facing.

カテゴリ

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

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by