Skip to content

Commit

Permalink
Add --no_tensorboard flags to disable Tensorboard summaries
Browse files Browse the repository at this point in the history
  • Loading branch information
cangermueller committed Oct 24, 2017
1 parent 3db804c commit 0332e85
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/dcpg_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,10 @@ def create_parser(self, name):
help='L2 weight decay',
type=float,
default=0.0001)
g.add_argument(
'--no_tensorboard',
help='Do not store Tensorboard summaries',
action='store_true')

g = p.add_argument_group('arguments to select outputs and weights')
g.add_argument(
Expand Down Expand Up @@ -449,7 +453,7 @@ def save_lc(epoch, epoch_logs, val_epoch_logs):
)
callbacks.append(self.perf_logger)

if K._BACKEND == 'tensorflow':
if K._BACKEND == 'tensorflow' and not opts.no_tensorboard:
callbacks.append(kcbk.TensorBoard(
log_dir=opts.out_dir,
histogram_freq=1,
Expand Down

0 comments on commit 0332e85

Please sign in to comment.