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 件のコメント

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

サインインしてコメントする。

回答 (1 件)

Abhishek Ballaney
Abhishek Ballaney 2018 年 3 月 5 日

0 投票

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

カテゴリ

ヘルプ センター および File ExchangeDeep 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