From f7f8bb23c2d20fd080b355b822482d0ad86c2aa8 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Mon, 4 Nov 2019 16:34:45 -0800 Subject: [PATCH] updates --- train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train.py b/train.py index 1d278058..896d309d 100644 --- a/train.py +++ b/train.py @@ -366,8 +366,8 @@ def train(): # end training if len(opt.name) and not opt.prebias: os.rename('results.txt', 'results_%s.txt' % opt.name) - os.rename(wdir + 'best.pt', wdir + 'best_%s.pt' % opt.name) os.rename(wdir + 'last.pt', wdir + 'last_%s.pt' % opt.name) + os.rename(wdir + 'best.pt', wdir + 'best_%s.pt' % opt.name) if os.path.exists(wdir + 'best.pt') else None plot_results() # save as results.png print('%g epochs completed in %.3f hours.\n' % (epoch - start_epoch + 1, (time.time() - t0) / 3600)) dist.destroy_process_group() if torch.cuda.device_count() > 1 else None