Error executing [ap, recall, precision] = evaluateDetectionPrecision(results, expectedResults);
1 view (last 30 days)
Show older comments
I have modified the FasterRCNN tutorial and have successfully created a detector, however when I get to the testing step I cannot execute the final code. The errors I get are below :
Error using vision.internal.detector.evaluationInputValidation>checkGroundTruthTable (line 101)
Invalid bounding box in row 1, column 1 of the training data table: Cell contents reference from a non-cell array
object.
Error in vision.internal.detector.evaluationInputValidation (line 8)
checkGroundTruthTable(groundTruth, height(detectionResults), mfilename);
Error in evaluateDetectionPrecision (line 94)
vision.internal.detector.evaluationInputValidation(detectionResults, ...
Error in RAT_DeepLearningFasterRCNNObjectDetectionExample (line 318)
[ap, recall, precision] = evaluateDetectionPrecision(results, expectedResults);
I have looked my results table and it seems to be in the correct format, with the boxes, the scores for each and the labels. What could be causing this error?
0 Comments
Answers (1)
Sanjana Ramakrishnan
on 3 May 2017
Edited: Walter Roberson
on 3 May 2017
The second parameter of the 'evaluateDetectionPrecision' function should be in the format as specified in the documentation link below:
The most likely cause of the error message: "Cell contents reference from a non-cell array" is when it is referenced incorrectly as below:
>> d = [ 1 2 4 5];
>> d{1}
Cell contents reference from a non-cell array object.
Ensure that the second parameter is in the right format and is referenced correctly.
See Also
Categories
Find more on Classification Ensembles in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!