Skip to content

Commit

Permalink
Added tensorboard instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanNaren committed Oct 4, 2017
1 parent 6a7008f commit de91e99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ There is also [Visdom](https://github.com/facebookresearch/visdom) support to vi
python train.py --visdom
```

There is also [Tensorboard](https://github.com/lanpa/tensorboard-pytorch) support to visualise training. Follow the instructions to set up. To use:

```
python train.py --tensorboard --logdir log_dir/ # Make sure the tensorboard instance is made pointing to this log directory
```

### Noise Augmentation/Injection

There is support for two different types of noise; noise augmentation and noise injection.
Expand Down
4 changes: 2 additions & 2 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def main():
os.makedirs(args.log_dir)
except OSError as e:
if e.errno == errno.EEXIST:
print('Directory already exists.')
print('Tensorboard log directory already exists.')
for file in os.listdir(args.log_dir):
file_path = os.path.join(args.log_dir, file)
try:
Expand All @@ -116,7 +116,7 @@ def main():
os.makedirs(save_folder)
except OSError as e:
if e.errno == errno.EEXIST:
print('Directory already exists.')
print('Model Save directory already exists.')
else:
raise
criterion = CTCLoss()
Expand Down

0 comments on commit de91e99

Please sign in to comment.