필터 지우기
필터 지우기

How to train a CNN for two or three inputs

조회 수: 7 (최근 30일)
JOEL PATERNE KOUAME
JOEL PATERNE KOUAME 2024년 3월 9일
답변: Venu 2024년 3월 13일
Morning Everyone,
Iam actually facing one issue for the training of the CNN model with two inputs for image classification. When i load the model i get this error message.
Error using trainNetwork
Invalid training data. For a network with 2 inputs and 1 output, the datastore read function must return a cell array with 3 columns, but
it returns a cell array with 2 columns.

채택된 답변

Venu
Venu 2024년 3월 13일
For a network with multiple inputs, MATLAB expects the training data to be organized in a specific way. The first two columns should contain the data for the two inputs, and the third column should contain the corresponding output (label).
You can refer to this MATLAB answer for more clarity.
Hope this helps!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by