Background boxes are no longer removed before building observations

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2019-06-03 10:38:44 +02:00
parent c0e5f74bee
commit 71c1b1f197

View File

@ -269,9 +269,6 @@ def _get_observations(detections: Sequence[Sequence[np.ndarray]]) -> List[List[n
# iterate over images
for i in range(batch_size):
detections_image = np.asarray(detections[i])
class_ids = np.argmax(detections_image[:, :-12],
axis=-1)
detections_image = detections_image[np.nonzero(class_ids[:])]
overlaps = bounding_box_utils.iou(detections_image[:, -12:-8],
detections_image[:, -12:-8],
mode="outer_product",