Provided image height and width for decode detections

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2019-05-30 14:49:53 +02:00
parent 3d1ba8adbf
commit 91ebf9032c

View File

@ -203,7 +203,9 @@ def _predict_one_epoch(dataset: tf.data.Dataset,
observations = np.asarray(_get_observations(detections))
del detections
observations = ssd_output_decoder.decode_detections_fast(observations)
observations = ssd_output_decoder.decode_detections_fast(observations,
img_height=IMAGE_SIZE[0],
img_width=IMAGE_SIZE[1])
result_transformed = []
for i in range(batch_size):
# apply inverse transformations to predicted bounding box coordinates