Fixed entropy threshold keyword argument

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2019-07-18 13:27:40 +02:00
parent 1a0398191a
commit 3b2f9fe4da

View File

@ -300,7 +300,7 @@ def _predict_loop(generator: Generator, use_dropout: bool, steps_per_epoch: int,
if not saved_images_prediction:
save_images(inputs, predictions, custom_string="after-prediction")
for entropy_threshold in entropy_thresholds:
decoded_predictions = decode_func(predictions, entropy_threshold=entropy_threshold)
decoded_predictions = decode_func(predictions, entropy_thresh=entropy_threshold)
if not saved_images_decoding:
custom_string = f"after-decoding-{entropy_threshold}" if use_entropy_threshold else "after-decoding"
save_images(inputs, decoded_predictions, custom_string=custom_string)