updates
This commit is contained in:
parent
96263ff434
commit
3ba7fc69b8
1
train.py
1
train.py
|
@ -367,6 +367,7 @@ def train():
|
|||
if len(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 + 'last.pt', wdir + 'last_%s.pt' % opt.name)
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue