Daryl Fung
commited on
Commit
•
a38664e
1
Parent(s):
7fea409
fix font
Browse files- yolov5/utils/plots.py +1 -1
yolov5/utils/plots.py
CHANGED
@@ -53,7 +53,7 @@ def check_pil_font(font=FONT, size=10):
|
|
53 |
font = Path(font)
|
54 |
font = font if font.exists() else (CONFIG_DIR / font.name)
|
55 |
try:
|
56 |
-
return ImageFont.truetype(str(font) if font.exists() else font.name, size)
|
57 |
except Exception: # download if missing
|
58 |
check_font(font)
|
59 |
try:
|
|
|
53 |
font = Path(font)
|
54 |
font = font if font.exists() else (CONFIG_DIR / font.name)
|
55 |
try:
|
56 |
+
return ImageFont.load_default() # ImageFont.truetype(str(font) if font.exists() else font.name, size)
|
57 |
except Exception: # download if missing
|
58 |
check_font(font)
|
59 |
try:
|