필터 지우기
필터 지우기

Dataset (Matrix) as an input in CNN

조회 수: 5 (최근 30일)
MEHDI HAMIDI
MEHDI HAMIDI 2022년 5월 11일
댓글: Dehia 2023년 10월 7일
Hi hello, i am trying to create a CNN model but my inputs are not images, it's a matrix, i would like to know how is it possible to do that, i have searched about it but nothing, and when i am trying to train my network i amm getting this error
Error using trainNetwork
Number of observations in X and Y disagree.
Error in Analyse_Data__CNN (line 81)
net = trainNetwork(D_App,L_App,layers,options);
Thank you so much for helping me i will appreciate it a lot
  댓글 수: 1
Dehia
Dehia 2023년 10월 7일
Salam Mehdi, peux tu s'il te plaît m'aider à faire ce que tu as fait. Je te remercie

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2022년 5월 11일
An image is a matrix so that should not be a problem. It looks like you don't have the same number of labeled ground truth matrices as you have training matrices.
  댓글 수: 6
Image Analyst
Image Analyst 2022년 5월 12일
I don't know what kind of deep learning training you're doing but for a standard type you need lots of images that are the same size. The size depends on the network architecture. If your image is a montage of lots of smaller images stitched together, then you get get them as separate images by cropping them out. You can't train a network on only one image!
MEHDI HAMIDI
MEHDI HAMIDI 2022년 5월 12일
you're right i totally forgot about this, it's just interpret it as a single image, and as you said you can't train a network on 1 image only, maybe if i make change my matrix to vectors it will make it

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

manel marweni
manel marweni 2022년 5월 13일
Dear Sir\madam,
Can you tell me please how can I see the output of each CNN layer with matlab, ( for example: I would like to extract the output of the convolution layer (to see the results) and make it as input to the next layer and so on).
With best regards.

카테고리

Help CenterFile Exchange에서 Recognition, Object Detection, and Semantic Segmentation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by