From 55481402a83835d0c5189a2d0b9c2257b98a1aa3 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Mon, 29 Apr 2019 11:47:33 +0200 Subject: [PATCH] Fixed variable name Signed-off-by: Jim Martens --- src/twomartens/masterthesis/ssd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/twomartens/masterthesis/ssd.py b/src/twomartens/masterthesis/ssd.py index 804d9e5..8a9cd59 100644 --- a/src/twomartens/masterthesis/ssd.py +++ b/src/twomartens/masterthesis/ssd.py @@ -191,8 +191,8 @@ def _predict_one_epoch(dataset: tf.data.Dataset, # save predictions batch-wise to prevent memory problems if nr_digits is not None: - counter = str(counter).zfill(nr_digits) - filename = f"{output_file}-{counter}.npy" + counter_str = str(counter).zfill(nr_digits) + filename = f"{output_file}-{counter_str}.npy" else: filename = f"{output_file}-{counter:d}.npy"