Error using faster RCNN object detection

1 view (last 30 days)
Saikat Sarkar
Saikat Sarkar on 27 Sep 2018
Edited: Saikat Sarkar on 27 Sep 2018
I am getting below error white trying to detect objects using a trained object detector, please help. Getting the error at the line detect(detector, img).
net=alexnet;
detector = trainFasterRCNNObjectDetector(trainingData, net, options)
[bboxes, scores, label] = detect(detector, img);
Error using activations Expected layer to be a scalar.
Error in vision.cnn.FastRCNN>iValidateAndParseLayerID (line 296) validateattributes(layerIdx, {'numeric'},...
Error in vision.cnn.FastRCNN/internalActivations (line 203) layerID = iValidateAndParseLayerID( layerID, internalLayers );
Error in fasterRCNNObjectDetector/detect (line 482) convmap = internalActivations(this.Network, Iroi, [], ...

Answers (0)

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!