필터 지우기
필터 지우기

Problem with evaluateObjectDetection function

조회 수: 5 (최근 30일)
Patrizia
Patrizia 2024년 7월 15일 9:03
댓글: Walter Roberson 대략 5시간 전
Hello, everyone,
I would like help with the function in question...
I attach the tables groundTruthData and detectionResults.
thanks
CODE:
% Evaluate object detection results
metrics = evaluateObjectDetection(detectionResultsTbl, groundTruthDataTbl);
Unrecognized function or variable 'detectionResultsTbl'.
% Extract precision and recall for a specific class ID (e.g. classID = 1)
classID = 1;
precision = metrics.ClassMetrics.Precision{classID};
recall = metrics.ClassMetrics.Recall{classID};
% Plot the precision-recall curve
figure
plot(recall, precision);
xlabel("Recall");
ylabel("Precision");
grid on;
title(sprintf("Average Precision = %.2f", metrics.ClassMetrics.mAP(classID)));
ERROR:
Error using evaluateObjectDetection>iFindOutputIdxsFromDS
Missing data in detectionResults. Unable to find Label data in detectionResults.
Error in evaluateObjectDetection (line 27)
predOutIdxs = iFindOutputIdxsFromDS(dsResultsCopy, 3, "detectionResults");
Error in untitled2 (line 306)
metrics = evaluateObjectDetection(detectionResultsTbl, groundTruthDataTbl);
  댓글 수: 2
Torsten
Torsten 대략 6시간 전
I attach the tables groundTruthData and detectionResults.
Where ?
Walter Roberson
Walter Roberson 대략 5시간 전
Your code disagrees with your images.
Your code in untitled2 shows creation of detectionResultsVector (which is not used anywhere), and does so by extracting a field named Labels from detectionResultsTbl . But your images show the table has a field named Label instead of Labels

댓글을 달려면 로그인하십시오.

답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by