ultralytics 8.2.66 HUB model autodownload (#14702)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
1d5d105c62
commit
9130399974
5 changed files with 14 additions and 11 deletions
|
|
@ -507,7 +507,7 @@ class BaseTrainer:
|
|||
self.last.write_bytes(serialized_ckpt) # save last.pt
|
||||
if self.best_fitness == self.fitness:
|
||||
self.best.write_bytes(serialized_ckpt) # save best.pt
|
||||
if (self.save_period > 0) and (self.epoch >= 0) and (self.epoch % self.save_period == 0):
|
||||
if (self.save_period > 0) and (self.epoch % self.save_period == 0):
|
||||
(self.wdir / f"epoch{self.epoch}.pt").write_bytes(serialized_ckpt) # save epoch, i.e. 'epoch3.pt'
|
||||
|
||||
def get_dataset(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue