|
|
@ -20,9 +20,9 @@ import requests
|
|
|
|
import torch
|
|
|
|
import torch
|
|
|
|
from matplotlib import font_manager
|
|
|
|
from matplotlib import font_manager
|
|
|
|
|
|
|
|
|
|
|
|
from ultralytics.yolo.utils import (AUTOINSTALL, LOGGER, ONLINE, ROOT, USER_CONFIG_DIR, TryExcept, clean_url, colorstr,
|
|
|
|
from ultralytics.yolo.utils import (AUTOINSTALL, LOGGER, ONLINE, ROOT, USER_CONFIG_DIR, ThreadingLocked, TryExcept,
|
|
|
|
downloads, emojis, is_colab, is_docker, is_jupyter, is_kaggle, is_online,
|
|
|
|
clean_url, colorstr, downloads, emojis, is_colab, is_docker, is_jupyter, is_kaggle,
|
|
|
|
is_pip_package, url2file)
|
|
|
|
is_online, is_pip_package, url2file)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def is_ascii(s) -> bool:
|
|
|
|
def is_ascii(s) -> bool:
|
|
|
@ -155,6 +155,7 @@ def check_pip_update_available():
|
|
|
|
return False
|
|
|
|
return False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ThreadingLocked()
|
|
|
|
def check_font(font='Arial.ttf'):
|
|
|
|
def check_font(font='Arial.ttf'):
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
Find font locally or download to user's configuration directory if it does not already exist.
|
|
|
|
Find font locally or download to user's configuration directory if it does not already exist.
|
|
|
|