`check_font()` fstring update (#9208)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
pull/9209/head
Glenn Jocher 2022-08-29 18:10:19 +02:00 committed by GitHub
parent bd5fd78411
commit da22e01a68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -456,7 +456,7 @@ def check_font(font=FONT, progress=False):
font = Path(font) font = Path(font)
file = CONFIG_DIR / font.name file = CONFIG_DIR / font.name
if not font.exists() and not file.exists(): if not font.exists() and not file.exists():
url = "https://ultralytics.com/assets/" + font.name url = f'https://ultralytics.com/assets/{font.name}'
LOGGER.info(f'Downloading {url} to {file}...') LOGGER.info(f'Downloading {url} to {file}...')
torch.hub.download_url_to_file(url, str(file), progress=progress) torch.hub.download_url_to_file(url, str(file), progress=progress)