updates
This commit is contained in:
parent
5ac3eb42b6
commit
33264f5567
1
train.py
1
train.py
|
@ -383,6 +383,7 @@ def train():
|
||||||
if opt.bucket:
|
if opt.bucket:
|
||||||
os.system('gsutil cp %s %s gs://%s' % (fresults, wdir + flast, opt.bucket))
|
os.system('gsutil cp %s %s gs://%s' % (fresults, wdir + flast, opt.bucket))
|
||||||
|
|
||||||
|
if not opt.evolve:
|
||||||
plot_results() # save as results.png
|
plot_results() # save as results.png
|
||||||
print('%g epochs completed in %.3f hours.\n' % (epoch - start_epoch + 1, (time.time() - t0) / 3600))
|
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
|
dist.destroy_process_group() if torch.cuda.device_count() > 1 else None
|
||||||
|
|
Loading…
Reference in New Issue