From 225d0307eb90e2704267612645aed8bc2ed5c04d Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Thu, 30 May 2019 14:59:52 +0200 Subject: [PATCH] Added code to debug probability of background class Signed-off-by: Jim Martens --- src/twomartens/masterthesis/ssd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/twomartens/masterthesis/ssd.py b/src/twomartens/masterthesis/ssd.py index 9cb919e..84c6baf 100644 --- a/src/twomartens/masterthesis/ssd.py +++ b/src/twomartens/masterthesis/ssd.py @@ -272,7 +272,8 @@ def _get_observations(detections: Sequence[Sequence[np.ndarray]]) -> List[List[n detections_image = np.asarray(detections[i]) class_ids = np.argmax(detections_image[:, :-12], axis=-1) - print(class_ids) + class_preds = detections_image[:, 0] + print(class_preds) detections_image = detections_image[np.nonzero(class_ids[:])] print(detections_image.shape) overlaps = bounding_box_utils.iou(detections_image[:, -12:-8],