Browse Source

save ckpt in FP16 #119

5.0
Glenn Jocher 4 years ago
parent
commit
d9b64c27c2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      train.py

+ 1
- 1
train.py View File

@@ -332,7 +332,7 @@ def train(hyp):
ckpt = {'epoch': epoch,
'best_fitness': best_fitness,
'training_results': f.read(),
'model': ema.ema.module if hasattr(model, 'module') else ema.ema,
'model': ema.ema.module.half() if hasattr(model, 'module') else ema.ema.half(),
'optimizer': None if final_epoch else optimizer.state_dict()}

# Save last, best and delete

Loading…
Cancel
Save