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/idna/compat.py from dl1wjd2/Logistics_AX: direct link, hf CLI and curl.
- Browser
- Download file 1.38 kB
-
https://huggingface.co/dl1wjd2/Logistics_AX/resolve/main/hug/lib/python3.12/site-packages/idna/compat.py
- Command line
-
hf download hf://dl1wjd2/Logistics_AX/hug/lib/python3.12/site-packages/idna/compat.py
-
curl -L -o compat.py https://huggingface.co/dl1wjd2/Logistics_AX/resolve/main/hug/lib/python3.12/site-packages/idna/compat.py
1.38 kB
| from __future__ import annotations | |
| from typing import Any | |
| from .core import decode, encode | |
| def ToASCII(label: str) -> bytes: | |
| """Compatibility shim for :rfc:`3490` ``ToASCII``. | |
| Delegates to :func:`idna.encode` (IDNA 2008). Provided to ease porting | |
| of code written against the legacy :mod:`encodings.idna` API; new code | |
| should call :func:`idna.encode` directly. | |
| :param label: The label or domain to encode. | |
| :returns: The encoded form as ASCII :class:`bytes`. | |
| """ | |
| return encode(label) | |
| def ToUnicode(label: bytes | bytearray) -> str: | |
| """Compatibility shim for :rfc:`3490` ``ToUnicode``. | |
| Delegates to :func:`idna.decode` (IDNA 2008). Provided to ease porting | |
| of code written against the legacy :mod:`encodings.idna` API; new code | |
| should call :func:`idna.decode` directly. | |
| :param label: The label or domain to decode. | |
| :returns: The decoded Unicode form. | |
| """ | |
| return decode(label) | |
| def nameprep(s: Any) -> None: | |
| """Stub for :rfc:`3491` Nameprep, which is not used by IDNA 2008. | |
| IDNA 2008 (:rfc:`5891`) replaces Nameprep with the per-codepoint | |
| validity classes from :rfc:`5892`; this function exists only to | |
| return a clear error if legacy code attempts to call it. | |
| :raises NotImplementedError: Always. | |
| """ | |
| raise NotImplementedError("IDNA 2008 does not utilise nameprep protocol") | |