Skip to content
This repository has been archived by the owner on Jul 2, 2019. It is now read-only.

Commit

Permalink
updated baseeval to tolerate a missing iou_score_field
Browse files Browse the repository at this point in the history
  • Loading branch information
dlindenbaum committed Oct 11, 2018
1 parent b140b4e commit 13509bc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cw_eval/baseeval.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,14 @@ def eval_iou(self, miniou=0.5, iou_field_prefix='iou_score',
TruePos = 0
FalsePos = 0
else:
TruePos = self.proposal_GDF[self.proposal_GDF[iou_field]>=miniou].shape[0]
FalsePos = self.proposal_GDF[self.proposal_GDF[iou_field]<miniou].shape[0]
try:
TruePos = self.proposal_GDF[self.proposal_GDF[iou_field]>=miniou].shape[0]
FalsePos = self.proposal_GDF[self.proposal_GDF[iou_field]<miniou].shape[0]
except:
print("iou field {} missing")
TruePos = 0
FalsePos = 0


FalseNeg = self.ground_truth_GDF_Edit.shape[0]

Expand Down

0 comments on commit 13509bc

Please sign in to comment.