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

This commit is contained in:
Sergiu Waxmann 2024-08-24 17:52:48 +03:00 committed by GitHub
parent 98fcd14142
commit 18bc4e85c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: