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