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
|
|
@ -136,12 +136,12 @@ class GCPRegions:
|
|||
sorted_results = sorted(results, key=lambda x: x[1])
|
||||
|
||||
if verbose:
|
||||
print(f"{'Region':<25} {'Location':<35} {'Tier':<5} {'Latency (ms)'}")
|
||||
print(f"{'Region':<25} {'Location':<35} {'Tier':<5} Latency (ms)")
|
||||
for region, mean, std, min_, max_ in sorted_results:
|
||||
tier, city, country = self.regions[region]
|
||||
location = f"{city}, {country}"
|
||||
if mean == float("inf"):
|
||||
print(f"{region:<25} {location:<35} {tier:<5} {'Timeout'}")
|
||||
print(f"{region:<25} {location:<35} {tier:<5} Timeout")
|
||||
else:
|
||||
print(f"{region:<25} {location:<35} {tier:<5} {mean:.0f} ± {std:.0f} ({min_:.0f} - {max_:.0f})")
|
||||
print(f"\nLowest latency region{'s' if top > 1 else ''}:")
|
||||
|
|
|
|||
|
|
@ -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