Why is activations function not working with custom made CNN model?
조회 수: 2 (최근 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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Data Workflows에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!