Hi,is there any command for strided convolution

i'm trying code strided convolution for implementing convolutional neural network but missing logic somewhere can someone help me with logic or any function for strided convolution

댓글 수: 4

Help you with what logic? You haven't posted anything, not even what "you are trying".
clear all();
a=imread('C:\Users\Win10\Desktop\projMatlab\specimages\1.1.jpg');
B = imresize(a,[256 256]);
r = B(:,:,1);
g = B(:,:,2);
b = B(:,:,3);
r1=double(r);
ker1=[-1 -1 -1;0 0 0;1 1 1];
ker2=[-1 0 1;-1 0 1;-1 0 1];
con3=0;
con1=1;
w=1;x=3;y=1;z=3;
it=0;ti=0;
while(ti<=252)
while(it<=252)
for i=w:x
for j=y:z
con1(i,j)=r1(i,j);
con2(i,j)=con1(i,j);
end
end
it=it+1;
y=y+1;z=z+1;
end
ti=ti+1;
w=w+1;x=x+1;
end
in the above code i'm getting 3*256 i.e it is incrementing columns its not incrementing rows, the code is to select part of the matrix which include striding
You forgot to include 'C:\Users\Win10\Desktop\projMatlab\specimages\1.1.jpg'

댓글을 달려면 로그인하십시오.

답변 (1개)

Abhishek Ballaney
Abhishek Ballaney 2018년 3월 5일

0 개 추천

https://in.mathworks.com/help/nnet/ref/nnet.cnn.layer.convolution2dlayer.html

카테고리

도움말 센터File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

질문:

2018년 3월 4일

답변:

2018년 3월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by