Skip to content

Commit 93e8247

Browse files
author
agirbau
committed
Added ignore zones for UA-DETRAC
1 parent 3aae885 commit 93e8247

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

motmetrics/apps/eval_detrac.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from pathlib import Path
2020

2121
import motmetrics as mm
22-
# Andreu
2322
from motmetrics.utils import is_in_region
2423

2524

@@ -69,7 +68,6 @@ def parse_args():
6968
return parser.parse_args()
7069

7170

72-
# Andreu
7371
def filter_dets_by_zone(gt_df, test_df):
7472
ig_region = gt_df[['X_reg', 'Y_reg', 'W_reg', 'H_reg']].dropna().values
7573
dets = test_df[['X', 'Y', 'Width', 'Height']]

motmetrics/io.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import pandas as pd
1919
import scipy.io
2020
import xmltodict
21-
# Andreu
21+
2222
from motmetrics.utils import is_in_region
2323

2424

@@ -277,7 +277,6 @@ def load_detrac_xml(fname):
277277
if type(ignored_region_list['box']) != list:
278278
ignored_region_list['box'] = [ignored_region_list['box']]
279279

280-
# Andreu
281280
parsed_ig = []
282281
for ig in ignored_region_list['box']:
283282
row = []

motmetrics/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ def compute_euc(a, b):
165165
return acc, analysis
166166

167167

168-
# Andreu
169168
def is_in_region(bbox, reg):
170169
# Check if the 4 points of the bbox are inside region
171170
points = []

0 commit comments

Comments
 (0)