Skip to content

Commit

Permalink
Merge pull request #418 from jybaek/fixed-best_wer
Browse files Browse the repository at this point in the history
Fixed the best_wer problem in continue_from option.
  • Loading branch information
Sean Naren committed May 20, 2019
2 parents d14273a + 84331d6 commit aa59401
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ def update(self, val, n=1):
avg_loss = int(package.get('avg_loss', 0))
loss_results, cer_results, wer_results = package['loss_results'], package['cer_results'], \
package['wer_results']
best_wer = wer_results[start_epoch]
if main_proc and args.visdom: # Add previous scores to visdom graph
visdom_logger.load_previous_values(start_epoch, package)
if main_proc and args.tensorboard: # Previous scores to tensorboard logs
Expand Down

0 comments on commit aa59401

Please sign in to comment.