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 comentarios

Image Analyst
Image Analyst el 4 de Mzo. de 2018
Help you with what logic? You haven't posted anything, not even what "you are trying".
VAMSI KRISHNA PELLURU
VAMSI KRISHNA PELLURU el 4 de Mzo. de 2018
Editada: Walter Roberson el 4 de Mzo. de 2018
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
Image Analyst
Image Analyst el 4 de Mzo. de 2018
You forgot to include 'C:\Users\Win10\Desktop\projMatlab\specimages\1.1.jpg'

Iniciar sesión para comentar.

Respuestas (1)

Abhishek Ballaney
Abhishek Ballaney el 5 de Mzo. de 2018

0 votos

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

Categorías

Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 4 de Mzo. de 2018

Respondida:

el 5 de Mzo. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by