Open hadign20 opened 7 years ago
What the location of your code added in pascal_voc.py? In this "for" loop or others?
BTW,whether you used the scikit-learn for these code?
where can i find the IOU value as is shown in the figure @hadi-ghnd
I am using the function below to calculate the recall-iou curve.
I based on: kitti_proposal_eval
function [overlap, recall, AR] = compute_average_recall(iou)
all_overlaps= sort(iou(:), 'ascend');
num_pos = numel(all_overlaps);
dx = 0.001;
overlap = 0:dx:1;
overlap(end) = 1;
recall = zeros(length(overlap), 1);
for i = 1:length(overlap)
recall(i) = sum(all_overlaps >= overlap(i)) / num_pos;
end
good_recall = recall(overlap > 0.5);
AR = 2 * dx * trapz(good_recall);
end
% example
[overlaps, recall, ar] = compute_average_recall(iou);
figure;
plot(overlaps, recall, 'LineWidth', 2);
title(sprintf('AR %.4f', ar), 'FontSize', 16);
I have tried to draw the Precision-Recall curve in pascal_voc.py like below:
This is based on this part of the code which has the variables rec, prec, and ap.
How can I draw the Recall-IoU curve and Recall-NumberOfProposals curve like below? Where can I get the IoU and Number of proposals values?
thanks