Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update eval.py #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions yoltv4/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def precision_calc(proposal_polygons_dir, gt_polygons_dir,
auto-created using all classes that appear ground truth polygons.
threshold : float
A value between 0.0 and 1.0 that determines the IOU threshold for a
true positve.
true positive.
file_format : str
The extension or file format for predictions
Returns
Expand Down Expand Up @@ -633,4 +633,4 @@ def mAP_score(proposal_polygons_dir, gt_polygons_dir,
APs_by_class.append(AP)
mAP = np.average(APs_by_class)
print("mAP:", mAP, "@IOU:", threshold)
return object_subset, mAP, APs_by_class, mF1_score, f1s_by_class, precision_iou_by_obj, precision_by_class, mPrecision, recall_iou_by_obj, recall_by_class, mRecall, confidences
return object_subset, mAP, APs_by_class, mF1_score, f1s_by_class, precision_iou_by_obj, precision_by_class, mPrecision, recall_iou_by_obj, recall_by_class, mRecall, confidences