General cleanup (#69)
Co-authored-by: ayush chaurasia <ayush.chaurarsia@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
7ae45c6cc4
commit
d63ee112d4
13 changed files with 265 additions and 433 deletions
|
|
@ -327,7 +327,7 @@ class BaseTrainer:
|
|||
metrics = self.validator(self)
|
||||
fitness = metrics.pop("fitness", -self.loss.detach().cpu().numpy()) # use loss as fitness measure if not found
|
||||
if not self.best_fitness or self.best_fitness < fitness:
|
||||
self.best_fitness = self.fitness
|
||||
self.best_fitness = fitness
|
||||
return metrics, fitness
|
||||
|
||||
def log(self, text, rank=-1):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue