Why is activations function not working with custom made CNN model?

조회 수: 2 (최근 30일)
Jhon Gray
Jhon Gray 2020년 9월 30일
I was trying extarct feature from CNN model. I was succesful with series net like alexnet using activation. But it is not wroking with array of CNN layers. Here was my model:
layers = [
imageInputLayer([32 32 3],"Name","imageinput")
convolution2dLayer([3 3],512,"Name","conv1_1","WeightsInitializer","narrow-normal")
tanhLayer("Name","tanh_1")
maxPooling2dLayer([2 2],"Name","maxpool_2_2","Stride",[2 2])
convolution2dLayer([5 5],256,"Name","conv1_2","Padding","same","WeightsInitializer","narrow-normal")
tanhLayer("Name","tanh_2")
maxPooling2dLayer([2 2],"Name","maxpool_2_1","Stride",[2 2])
convolution2dLayer([7 7],128,"Name","conv1_3","Padding","same","WeightsInitializer","narrow-normal")
reluLayer("Name","relu_3")
maxPooling2dLayer([2 2],"Name","maxpool_3","Stride",[2 2])
dropoutLayer(0.1,"Name","dropout")
fullyConnectedLayer(2,"Name","fc","WeightsInitializer","narrow-normal") %Wanna add those features corresponding to each image.
softmaxLayer("Name","softmax")
classificationLayer("Name","classoutput")];
Here I used this code to extract information:
There is a clear difference between alexnet and a_mynet(actuall name was layers_1). One is series net another is not.
How to create a CNN model with deep Network design apps that work with activation fuction?
I tried to edit the seriesnet. But matlab didn't let me to.Please answer this. If you know.
TIA

답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by