Ultralytics Code Refactor https://ultralytics.com/actions (#16047)
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
95d54828bb
commit
ac2c2be8f3
12 changed files with 45 additions and 62 deletions
|
|
@ -346,7 +346,7 @@ class HUBTrainingSession:
|
|||
"""
|
||||
weights = Path(weights)
|
||||
if not weights.is_file():
|
||||
last = weights.with_name("last" + weights.suffix)
|
||||
last = weights.with_name(f"last{weights.suffix}")
|
||||
if final and last.is_file():
|
||||
LOGGER.warning(
|
||||
f"{PREFIX} WARNING ⚠️ Model 'best.pt' not found, copying 'last.pt' to 'best.pt' and uploading. "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue