updates
This commit is contained in:
parent
2e4650e013
commit
ac8d78382a
4
train.py
4
train.py
|
@ -377,9 +377,7 @@ def train():
|
||||||
os.rename('results.txt', fresults)
|
os.rename('results.txt', fresults)
|
||||||
os.rename(wdir + 'last.pt', wdir + flast) if os.path.exists(wdir + 'last.pt') else None
|
os.rename(wdir + 'last.pt', wdir + flast) if os.path.exists(wdir + 'last.pt') else None
|
||||||
os.rename(wdir + 'best.pt', wdir + fbest) if os.path.exists(wdir + 'best.pt') else None
|
os.rename(wdir + 'best.pt', wdir + fbest) if os.path.exists(wdir + 'best.pt') else None
|
||||||
|
if opt.bucket: # save to cloud
|
||||||
# save to cloud
|
|
||||||
if opt.bucket:
|
|
||||||
os.system('gsutil cp %s gs://%s/results' % (fresults, opt.bucket))
|
os.system('gsutil cp %s gs://%s/results' % (fresults, opt.bucket))
|
||||||
os.system('gsutil cp %s gs://%s/weights' % (wdir + flast, opt.bucket))
|
os.system('gsutil cp %s gs://%s/weights' % (wdir + flast, opt.bucket))
|
||||||
# os.system('gsutil cp %s gs://%s/weights' % (wdir + fbest, opt.bucket))
|
# os.system('gsutil cp %s gs://%s/weights' % (wdir + fbest, opt.bucket))
|
||||||
|
|
Loading…
Reference in New Issue