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/ttLib/ttVisitor.py from dl1wjd2/Logistics_AX: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/dl1wjd2/Logistics_AX/resolve/main/hug/lib/python3.12/site-packages/fontTools/ttLib/ttVisitor.py
- Command line
-
hf download hf://dl1wjd2/Logistics_AX/hug/lib/python3.12/site-packages/fontTools/ttLib/ttVisitor.py
-
curl -L -o ttVisitor.py https://huggingface.co/dl1wjd2/Logistics_AX/resolve/main/hug/lib/python3.12/site-packages/fontTools/ttLib/ttVisitor.py
1.03 kB
| """Specialization of fontTools.misc.visitor to work with TTFont.""" | |
| from fontTools.misc.visitor import Visitor | |
| from fontTools.ttLib import TTFont | |
| class TTVisitor(Visitor): | |
| def visitAttr(self, obj, attr, value, *args, **kwargs): | |
| if isinstance(value, TTFont): | |
| return False | |
| super().visitAttr(obj, attr, value, *args, **kwargs) | |
| def visit(self, obj, *args, **kwargs): | |
| if hasattr(obj, "ensureDecompiled"): | |
| obj.ensureDecompiled(recurse=False) | |
| super().visit(obj, *args, **kwargs) | |
| def visit(visitor, font, *args, **kwargs): | |
| # Some objects have links back to TTFont; even though we | |
| # have a check in visitAttr to stop them from recursing | |
| # onto TTFont, sometimes they still do, for example when | |
| # someone overrides visitAttr. | |
| if hasattr(visitor, "font"): | |
| return False | |
| visitor.font = font | |
| for tag in font.keys(): | |
| visitor.visit(font[tag], *args, **kwargs) | |
| del visitor.font | |
| return False | |