MATLAB Answers

How can I fix the problem of deep network designer in MATLAB?

4 views (last 30 days)
jin Lu
jin Lu on 16 Apr 2021
Commented: jin Lu on 16 Apr 2021
I have used the Function yolov2Layers to improve the resnet50. And I also have used the Deep NetWork Designer to import the improved network from the workspace. When I used the button Analyze the network, however, I encountered the error:
expected input to match one of these values: 'narrow-normal','glorot','he','zeros','ones'
The input, '@(sz)randn(sz)*0.01,did not match any of the valid values.
Moreover, I can't export the code.

Answers (1)

Steven Lord
Steven Lord on 16 Apr 2021
Which release of Deep Learning Toolbox are you using? If you're using a release prior to R2019a I suspect though I'm not certain that the functionality you're trying to use was introduced in that release. See the Release Notes for more information.
  2 Comments
jin Lu
jin Lu on 16 Apr 2021
imageSize = [224 224 3];
numClasses = 1;
anchorBoxes = [1 1;4 6;5 3;9 6];
network = resnet50();
featureLayer = 'activation_49_relu';
lgraph = yolov2Layers(imageSize,numClasses,anchorBoxes,network,featureLayer);
analyzeNetwork(lgraph)
I can use the function analyzeNetwork to analyze the lgraph. But I can't use the button in Deep NetWork Designer to analyze it.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!