필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Command window showing the errror 'Index exceeds matrix dimensions'. How to resolve it? Following is my code if possible resolve the code.

조회 수: 1 (최근 30일)
layers=[ ...
imageInputLayer([566 804 3])
convolution2dLayer([50 50],10,'stride',[6 6],'padding',[0 0])
reluLayer
crossChannelNormalizationLayer(3)
maxPooling2dLayer(5,'stride',[4 4],'padding',[0 0])
convolution2dLayer([50 50],10,'stride',[6 6],'padding',[0 0])
reluLayer
crossChannelNormalizationLayer(3)
maxPooling2dLayer(5,'stride',[4 4],'padding',[0 0])
convolution2dLayer([50 50],10,'stride',[6 6],'padding',[0 0])
reluLayer
crossChannelNormalizationLayer(3)
maxPooling2dLayer(5,'stride',[4 4],'padding',[0 0])
convolution2dLayer([50 50],10,'stride',[1 1],'padding',[1 1])
reluLayer
convolution2dLayer([50 50],10,'stride',[1 1],'padding',[1 1])
reluLayer
convolution2dLayer([50 50],10,'stride',[1 1],'padding',[1 1])
reluLayer
maxPooling2dLayer(5,'stride',[4 4],'padding',[0 0])
fullyConnectedLayer(2)
softmaxLayer
classificationLayer()]
  댓글 수: 2
Geoff Hayes
Geoff Hayes 2019년 2월 17일
Gudivada - which line of code is throwing the error message? Please copy and paste the full error message to this question.
GUDIVADA ROKESH  KUMAR
GUDIVADA ROKESH KUMAR 2019년 2월 17일
Index exceeds matrix dimensions.
Error in trailnet (line 58)
imageInputLayer([566 804 3])

답변 (1개)

Walter Roberson
Walter Roberson 2019년 2월 17일
Somehow you accidentally assigned a value to a variable named imageInputLayer, so the line of code now refers to the variable, instead of referring to a function with that name.

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by