Skip to content

Commit

Permalink
Fix for Arial.ttf redownloads with hub inference (#4627)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Aug 31, 2021
1 parent 50a9828 commit ba0f808
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import sys
from pathlib import Path

import torch
from PIL import ImageFont

FILE = Path(__file__).absolute()
ROOT = FILE.parents[1] # yolov5/ dir
if str(ROOT) not in sys.path:
sys.path.append(str(ROOT)) # add ROOT to PATH

# Check YOLOv5 Annotator font
font = 'Arial.ttf'
Expand Down

0 comments on commit ba0f808

Please sign in to comment.