ultralytics 8.3.6 improve collect_system_info (#16722)
Signed-off-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
4884311991
commit
d90efbd297
5 changed files with 52 additions and 27 deletions
|
|
@ -469,11 +469,11 @@ class BaseTrainer:
|
|||
|
||||
if RANK in {-1, 0}:
|
||||
# Do final val with best.pt
|
||||
LOGGER.info(
|
||||
f"\n{epoch - self.start_epoch + 1} epochs completed in "
|
||||
f"{(time.time() - self.train_time_start) / 3600:.3f} hours."
|
||||
)
|
||||
epochs = epoch - self.start_epoch + 1 # total training epochs
|
||||
seconds = time.time() - self.train_time_start # total training seconds
|
||||
LOGGER.info(f"\n{epochs} epochs completed in {seconds / 3600:.3f} hours.")
|
||||
self.final_eval()
|
||||
self.validator.metrics.training = {"epochs": epochs, "seconds": seconds} # add training speed
|
||||
if self.args.plots:
|
||||
self.plot_metrics()
|
||||
self.run_callbacks("on_train_end")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue