Missing best.pt resumed checkpoint upload spelling (#15772)
This commit is contained in:
parent
98fcd14142
commit
18bc4e85c4
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue