How to change input size of neural network from 3d to 2d?
1 回表示 (過去 30 日間)
古いコメントを表示
I have to classify 2d images using googlenet model of Neural Network Toolbox, here the input layer size is 224x224x3 but I need it to classify 224x224x1. How to change the size of input layer and what else would be needed to change after this change in input size?
0 件のコメント
回答 (1 件)
Majid Farzaneh
2018 年 5 月 30 日
編集済み: Walter Roberson
2018 年 5 月 30 日
Hi,
You can use the gray-scale image instead of RGB image. Use this command to make gray-scale from RGB:
Ig=rgb2gray(I)
Where I is your input image.
Also you can use one of layer of image:
R=I(:,:,1);
or
G=I(:,:,2);
or
B=I(:,:,3);
参考
カテゴリ
Help Center および File Exchange で Deep Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!