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 Comments

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'

Sign in to comment.

Answers (1)

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

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!