updates
This commit is contained in:
parent
7997be8bba
commit
fb81559565
4
train.py
4
train.py
|
@ -327,7 +327,7 @@ def train():
|
|||
best_fitness = fitness
|
||||
|
||||
# Save training results
|
||||
save = (not opt.nosave) or ((not opt.evolve) and final_epoch)
|
||||
save = (not opt.nosave) or (final_epoch and not opt.evolve) or opt.prebias
|
||||
if save:
|
||||
with open('results.txt', 'r') as file:
|
||||
# Create checkpoint
|
||||
|
@ -340,7 +340,7 @@ def train():
|
|||
|
||||
# Save last checkpoint
|
||||
torch.save(chkpt, last)
|
||||
if opt.bucket and not opt.evolve:
|
||||
if opt.bucket and not opt.prebias:
|
||||
os.system('gsutil cp %s gs://%s' % (last, opt.bucket)) # upload to bucket
|
||||
|
||||
# Save best checkpoint
|
||||
|
|
Loading…
Reference in New Issue