Skip to content

Commit

Permalink
relaxed logging to empty directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jackd committed May 9, 2020
1 parent df90fed commit edab69c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tensorflow_graphics/projects/pointnet/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def setup_tensorboard(flags):
return

# --- Do not allow experiment with same name
assert not tf.io.gfile.exists(flags.logdir), \
assert (not tf.io.gfile.exists(flags.logdir) or
len(tf.io.gfile.listdir(flags.logdir)) == 0), \
"CRITICAL: folder {} already exists".format(flags.logdir)

# --- Log where summary can be found
Expand Down

0 comments on commit edab69c

Please sign in to comment.