Skip to content

Commit 28352f7

Browse files
fixes
1 parent a80379d commit 28352f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python_benchmarks/objdetect_benchmark/objdetect_benchmark.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ def print_category_frame(obj_type, category, statistics, accuracy, path):
351351
objs = np.array(list(deepflatten(statistics)))
352352
detected = objs[objs < accuracy]
353353
frame = {"category": category, "detected " + obj_type: len(detected)/max(1, len(objs)),
354-
"total detected " + obj_type: len(detected), "total " + obj_type: len(detected),
354+
"total detected " + obj_type: len(detected), "total " + obj_type: len(objs),
355355
"average error " + obj_type: np.mean(detected)}
356356
data_frame = pd.DataFrame(objs)
357357
data_frame.hist(bins=500)
@@ -677,7 +677,7 @@ def generate_dataset(args, synthetic_object, background_color=0):
677677
synthetic_object.transform_object(rotate_t)
678678
for transform in transforms:
679679
synthetic_object.transform_object(transform)
680-
folder = '_'.join(synthetic_object.history)
680+
folder = '_' + '_'.join(synthetic_object.history)
681681
dictionary[folder] = dictionary.get(folder, -1) + 1
682682
if not os.path.exists(output + "/" + folder):
683683
os.mkdir(output + "/" + folder)
@@ -775,7 +775,7 @@ def main():
775775
list_folders = next(os.walk(dataset_path))[1]
776776
error_by_categories = {}
777777
for folder in list_folders:
778-
if folder[0].isdigit():
778+
if folder[0] != '_':
779779
continue
780780
configs = glob.glob(dataset_path + '/' + folder + '/*.json')
781781
distances = {}

0 commit comments

Comments
 (0)