Debug print decoded predictions

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2019-04-29 10:57:05 +02:00
parent b4bb4ed0a5
commit d8f57f7301

View File

@ -185,6 +185,7 @@ def _predict_one_epoch(dataset: tf.data.Dataset,
decoded_predictions_batch.append(ssd(inputs))
# save predictions batch-wise to prevent memory problems
print(decoded_predictions_batch)
with open(f"{output_file}-{counter:d}.npy", 'wb') as file:
np.save(file, decoded_predictions_batch, allow_pickle=False, fix_imports=False)