Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Fix class name when generating metrics for Object Detection #494

Merged
merged 11 commits into from Oct 9, 2019
1 change: 1 addition & 0 deletions lmnet/lmnet/networks/object_detection/yolo_v1.py
Expand Up @@ -98,6 +98,7 @@ def metrics(self, output, labels, thresholds=[0.3, 0.5, 0.7]):
for overlap_thresh in thresholds:
average_precisions = []
for class_id, class_name in enumerate(self.classes):
class_name = class_name.replace(' ', '_')
Joeper214 marked this conversation as resolved.
Show resolved Hide resolved
tps = []
fps = []
scores = []
Expand Down
1 change: 1 addition & 0 deletions lmnet/lmnet/networks/object_detection/yolo_v2.py
Expand Up @@ -248,6 +248,7 @@ def metrics(self, output, labels, thresholds=[0.3, 0.5, 0.7]):
for overlap_thresh in thresholds:
average_precisions = []
for class_id, class_name in enumerate(self.classes):
class_name = class_name.replace(' ', '_')
tps = []
fps = []
scores = []
Expand Down