Missing best.pt resumed checkpoint upload spelling (#15772)

action-recog
Sergiu Waxmann 3 months ago committed by fcakyon
parent 4eb81f055d
commit d4939aa58a
  1. 4
      ultralytics/hub/session.py

@ -350,10 +350,10 @@ class HUBTrainingSession:
last = weights.with_name("last" + weights.suffix) last = weights.with_name("last" + weights.suffix)
if final and last.is_file(): if final and last.is_file():
LOGGER.warning( LOGGER.warning(
f"{PREFIX} ARNING ⚠ Model 'best.pt' not found, copying 'last.pt' to 'best.pt' and uploading. " f"{PREFIX} WARNING ⚠ Model 'best.pt' not found, copying 'last.pt' to 'best.pt' and uploading. "
"This often happens when resuming training in transient environments like Google Colab. " "This often happens when resuming training in transient environments like Google Colab. "
"For more reliable training, consider using Ultralytics HUB Cloud. " "For more reliable training, consider using Ultralytics HUB Cloud. "
"Learn more at https://docs.ultralytics.com/hub/cloud-training/." "Learn more at https://docs.ultralytics.com/hub/cloud-training."
) )
shutil.copy(last, weights) # copy last.pt to best.pt shutil.copy(last, weights) # copy last.pt to best.pt
else: else:

Loading…
Cancel
Save