CNNを用いた回帰用のネットワークを作りたいのですがどうしたらよいですか?
    5 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Natsuo OKADA
 el 4 de Nov. de 2020
  
    
    
    
    
    Comentada: Natsuo OKADA
 el 9 de Nov. de 2020
            CNNを用いた画像用の回帰のネットワークを作成したいのですが、学習させる画像データの読み込みはどのように行ったらよいのでしょうか?
よろしくお願いいたします。
0 comentarios
Respuesta aceptada
  Kenta
      
 el 6 de Nov. de 2020
        こんにちは、以下の例を参照されていますでしょうか?
ここでは、入力を4D配列(RGB画像をどんどん積み重ねるイメージ)にしています。
例えば、手持ちの画像を順に読み込んで
xtrain=[];
for k=1:10
    I=imread('xxxx');
    xtrain=cat(4,xtrain,I);
end
のようにすれば4D配列を作成することができます。
他の方法として、4D配列は作らず、transform関数などを使いながらイメージデータストアを使って読み込む方法もありますが、上の方法よりは複雑になるかもしれません。
https://jp.mathworks.com/help/deeplearning/ug/image-to-image-regression-using-deep-learning.html
Más respuestas (0)
Ver también
Categorías
				Más información sobre Deep Learning Toolbox en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
