You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 satır
555B

  1. # import sys
  2. # from pathlib import Path
  3. #
  4. # import torch
  5. # from PIL import ImageFont
  6. #
  7. # FILE = Path(__file__).absolute()
  8. # ROOT = FILE.parents[1] # yolov5/ dir
  9. # if str(ROOT) not in sys.path:
  10. # sys.path.append(str(ROOT)) # add ROOT to PATH
  11. #
  12. # # Check YOLOv5 Annotator font
  13. # font = 'Arial.ttf'
  14. # try:
  15. # ImageFont.truetype(font)
  16. # except Exception as e: # download if missing
  17. # url = "https://ultralytics.com/assets/" + font
  18. # print(f'Downloading {url} to {ROOT / font}...')
  19. # torch.hub.download_url_to_file(url, str(ROOT / font))