Removed abspath usage in specifying checkpoint dir

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2019-02-08 15:03:47 +01:00
parent 279e848434
commit 8e0a063759

View File

@ -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)