This commit is contained in:
Glenn Jocher 2019-11-02 19:54:14 -07:00
parent 3ba7fc69b8
commit fd3f2ed65f
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ def train():
# end epoch ---------------------------------------------------------------------------------------------------- # end epoch ----------------------------------------------------------------------------------------------------
# end training # end training
if len(opt.name): if len(opt.name) and not opt.prebias:
os.rename('results.txt', 'results_%s.txt' % opt.name) os.rename('results.txt', 'results_%s.txt' % opt.name)
os.rename(wdir + 'best.pt', wdir + 'best_%s.pt' % 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 + 'last.pt', wdir + 'last_%s.pt' % opt.name)