From 8e0a063759c76bdedf58e77c683338e3633bf95d Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Fri, 8 Feb 2019 15:03:47 +0100 Subject: [PATCH] Removed abspath usage in specifying checkpoint dir Signed-off-by: Jim Martens --- src/twomartens/masterthesis/aae/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/twomartens/masterthesis/aae/train.py b/src/twomartens/masterthesis/aae/train.py index 2f7d700..af63011 100644 --- a/src/twomartens/masterthesis/aae/train.py +++ b/src/twomartens/masterthesis/aae/train.py @@ -127,7 +127,7 @@ def train_mnist(folding_id: int, inlier_classes: Sequence[int], total_classes: i total_lowest_loss = math.inf grace_period = GRACE - checkpoint_dir = os.path.abspath('./weights/' + str(inlier_classes[0]) + '/' + str(iteration) + '/') + checkpoint_dir = './weights/' + str(inlier_classes[0]) + '/' + str(iteration) + '/' os.makedirs(checkpoint_dir, exist_ok=True) checkpoint_prefix = os.path.join(checkpoint_dir, 'ckpt') latest_checkpoint = tf.train.latest_checkpoint(checkpoint_dir)