Skip to content

Commit

Permalink
Bugfix/trad criteria only (#10)
Browse files Browse the repository at this point in the history
* move nat and ntpt initiation

* move nat and ntpt initiation
  • Loading branch information
Shidqiet committed Jul 5, 2022
1 parent dbbc2a2 commit 961bab3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssvad_metrics/criteria.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,9 @@ def _get_cur_calcs(
# pred_ar_m do not IoU enough with any gt_ar_m
nfp += 1

nat = len(gt_a_trks)
ntpt = 0
if use_region_mtrc and use_track_mtrc:
nat = len(gt_a_trks)
ntpt = 0
for gt_a_trk, pred_a_trk in zip(gt_a_trks.values(), pred_a_trks.values()):
_tp = 0
lk_size = 0
Expand Down

0 comments on commit 961bab3

Please sign in to comment.