Instructions to use dl1wjd2/Logistics_AX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use dl1wjd2/Logistics_AX with ultralytics:
from huggingface_hub import hf_hub_download from ultralytics import YOLO # pick the weights file from this repo's "Files and versions" tab weights = hf_hub_download("dl1wjd2/Logistics_AX", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
Download hug/lib/python3.12/site-packages/fontTools/unicode.py from dl1wjd2/Logistics_AX: direct link, hf CLI and curl.
- Browser
- Download file 1.24 kB
-
https://huggingface.co/dl1wjd2/Logistics_AX/resolve/main/hug/lib/python3.12/site-packages/fontTools/unicode.py
- Command line
-
hf download hf://dl1wjd2/Logistics_AX/hug/lib/python3.12/site-packages/fontTools/unicode.py
-
curl -L -o unicode.py https://huggingface.co/dl1wjd2/Logistics_AX/resolve/main/hug/lib/python3.12/site-packages/fontTools/unicode.py
1.24 kB
| def _makeunicodes(f): | |
| lines = iter(f.readlines()) | |
| unicodes = {} | |
| for line in lines: | |
| if not line: | |
| continue | |
| num, name = line.split(";")[:2] | |
| if name[0] == "<": | |
| continue # "<control>", etc. | |
| num = int(num, 16) | |
| unicodes[num] = name | |
| return unicodes | |
| class _UnicodeCustom(object): | |
| def __init__(self, f): | |
| if isinstance(f, str): | |
| with open(f) as fd: | |
| codes = _makeunicodes(fd) | |
| else: | |
| codes = _makeunicodes(f) | |
| self.codes = codes | |
| def __getitem__(self, charCode): | |
| try: | |
| return self.codes[charCode] | |
| except KeyError: | |
| return "????" | |
| class _UnicodeBuiltin(object): | |
| def __getitem__(self, charCode): | |
| try: | |
| # use unicodedata backport to python2, if available: | |
| # https://github.com/mikekap/unicodedata2 | |
| import unicodedata2 as unicodedata | |
| except ImportError: | |
| import unicodedata | |
| try: | |
| return unicodedata.name(chr(charCode)) | |
| except ValueError: | |
| return "????" | |
| Unicode = _UnicodeBuiltin() | |
| def setUnicodeData(f): | |
| global Unicode | |
| Unicode = _UnicodeCustom(f) | |