Skip to content

Commit

Permalink
Added ignore zones for UA-DETRAC
Browse files Browse the repository at this point in the history
  • Loading branch information
agirbau committed Feb 8, 2021
1 parent 3aae885 commit 93e8247
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions motmetrics/apps/eval_detrac.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from pathlib import Path

import motmetrics as mm
# Andreu
from motmetrics.utils import is_in_region


Expand Down Expand Up @@ -69,7 +68,6 @@ def parse_args():
return parser.parse_args()


# Andreu
def filter_dets_by_zone(gt_df, test_df):
ig_region = gt_df[['X_reg', 'Y_reg', 'W_reg', 'H_reg']].dropna().values
dets = test_df[['X', 'Y', 'Width', 'Height']]
Expand Down
3 changes: 1 addition & 2 deletions motmetrics/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import pandas as pd
import scipy.io
import xmltodict
# Andreu

from motmetrics.utils import is_in_region


Expand Down Expand Up @@ -277,7 +277,6 @@ def load_detrac_xml(fname):
if type(ignored_region_list['box']) != list:
ignored_region_list['box'] = [ignored_region_list['box']]

# Andreu
parsed_ig = []
for ig in ignored_region_list['box']:
row = []
Expand Down
1 change: 0 additions & 1 deletion motmetrics/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ def compute_euc(a, b):
return acc, analysis


# Andreu
def is_in_region(bbox, reg):
# Check if the 4 points of the bbox are inside region
points = []
Expand Down

0 comments on commit 93e8247

Please sign in to comment.