Threshold for evaluation deep learning

两盒软妹~` 提交于 2020-03-05 05:17:27

问题


I would like if possible how to make this Threshold for Evaluation and validation of created R-CNN object Detector, i tried to make it in the attached scripts but it does not work, I want to make Threshold for score that like below 0.58 that score and bboxes should not be appeared

Herein the code:-

load('gTruth.mat')
output = selectLabels(gTruth,'signal');
if ~isfolder(fullfile('EvaluationData'))

    mkdir EvaluationData
    addpath('EvaluationData');

    evaluationData = objectDetectorTrainingData(gTruth,...
    'SamplingFactor',1,'WriteLocation','EvaluationData');
end
imds = imageDatastore(fullfile('EvaluationData'));
numImages = height(evaluationData);
result(numImages,:) = struct('Boxes',[],'Scores',[]);
for i = 1:numImages

    % Read Image
    I = readimage(imds,i); 

    % Detect the object of interest
   [bboxes, scores] = detect(detector,I,'MiniBatchSize', 32);    
    % Store result 
    result(i).Boxes = bboxes;
    result(i).Scores = scores;

end
% Convert structure to table
results = struct2table(result);
overlap = 0.1;
% Evaluate Metrics
[ap,recall,precision] = evaluateDetectionPrecision(results...
    ,evaluationData(:,2),overlap);
[am,fppi,missRate] = evaluateDetectionMissRate(results,evaluationData(:,2),overlap)

来源:https://stackoverflow.com/questions/58147781/threshold-for-evaluation-deep-learning

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!