How do i select the weights of kernals in convolutional neural networks? i am using rand(3,3) for 3X3 kernel filtering. am i in the correct way??!!
1 回表示 (過去 30 日間)
古いコメントを表示
IM=imresize(IM,[33,33]); %%resizing into 33X33
[row,col,chan]=size(IM);
lower=-1/sqrt(3);
upper=1/sqrt(3);
w=rand(3,3,64); % initializing random weights with 3X3X64 size of interest
conv1=zeros(row,col,64); %% decraling conv1 layer with zeros for ii=1:size(w,3)
conv1(:,:,ii)=imfilter(IM,w(:,:,ii)); %%convolving with kernals
end
0 件のコメント
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!