how to solve "Dot Indexing not supported for this type of variable" error

1 view (last 30 days)
I trained a Faster R-CNN network by following the trainfasterrcnn page but i am unable to test the network as i get the error below
"Dot indexing is not supported for variables of this type.
Error in fasterRCNNObjectDetector/parseDetectInputs (line 713)
networkInputSize = this.Network.Layers(this.LayerIndices.ImageLayerIdx).InputSize;
Error in fasterRCNNObjectDetector/detect (line 441)
params = this.parseDetectInputs(I, varargin{:});"
% load training data
load('FiveClassesTraining.mat');
TestImg = imread(trainingData.Imagefilename{70});
figure
imshow(TestImg)
% Run the detector
[bboxes,scores] = detect(detector,TestImg);
% Annotate detections in the image.
TestImg = insertObjectAnnotation(TestImg,'rectangle',bboxes,scores);
figure
imshow(TestImg)
  3 Comments

Sign in to comment.

Answers (1)

Zainab Olalekan
Zainab Olalekan on 22 Apr 2019
Thank you so much for the help, kindly find attached the mat file and a sample image
  3 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!