Error using faster RCNN object detection

2 次查看(过去 30 天)
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, [], ...

回答(0 个)

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by