Skip to content

Commit

Permalink
Don't print configs in tensorboard
Browse files Browse the repository at this point in the history
  • Loading branch information
shinianzhihou committed Mar 24, 2020
1 parent 1933d3b commit d65d882
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 25 deletions.
2 changes: 1 addition & 1 deletion build/tensorboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ def build_tensorboad(cfg):
name = "%s/%s" % ( time.strftime("%Y-%m-%d-%H-%M"),ID)
path = os.path.join(tcfg.PATH, name)
writer = SummaryWriter(path)
writer.add_text("config", str(cfg), 0)
# writer.add_text("config", str(cfg), 0)
return writer

1 change: 0 additions & 1 deletion engine/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def train_epoch(
writer.add_scalar("train/lr", scheduler.get_lr()[0], current_batch)



if test_loader and not current_batch % cfg.SOLVER.TEST_PERIOD:
step = current_batch // cfg.SOLVER.TEST_PERIOD
del img1,img2,gt,output
Expand Down
23 changes: 0 additions & 23 deletions logs/eval.csv

This file was deleted.

0 comments on commit d65d882

Please sign in to comment.