Added conversion to numpy array

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2019-07-09 13:14:24 +02:00
parent c96783b384
commit 3fd7ba7373

View File

@ -203,7 +203,7 @@ def predict_keras(generator: callable,
# do observation stuff
predictions = np.asarray(_get_observations(detections))
else:
predictions = ssd_model.predict_on_batch(x)
predictions = np.asarray(ssd_model.predict_on_batch(x))
print(predictions[:, :, [-2, -1]])
decoded_predictions_batch = ssd_output_decoder.decode_detections_fast(