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

pull/15791/head^2
Sergiu Waxmann 3 months ago committed by GitHub
parent 98fcd14142
commit 18bc4e85c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      ultralytics/hub/session.py

@ -350,10 +350,10 @@ class HUBTrainingSession:
last = weights.with_name("last" + weights.suffix)
if final and last.is_file():
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. "
"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
else:

Loading…
Cancel
Save