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/misc/filesystem/_tempfs.py from dl1wjd2/Logistics_AX: direct link, hf CLI and curl.
- Browser
- Download file 924 Bytes
-
https://huggingface.co/dl1wjd2/Logistics_AX/resolve/main/hug/lib/python3.12/site-packages/fontTools/misc/filesystem/_tempfs.py
- Command line
-
hf download hf://dl1wjd2/Logistics_AX/hug/lib/python3.12/site-packages/fontTools/misc/filesystem/_tempfs.py
-
curl -L -o _tempfs.py https://huggingface.co/dl1wjd2/Logistics_AX/resolve/main/hug/lib/python3.12/site-packages/fontTools/misc/filesystem/_tempfs.py
924 Bytes
| from __future__ import annotations | |
| import shutil | |
| import tempfile | |
| from ._errors import OperationFailed | |
| from ._osfs import OSFS | |
| class TempFS(OSFS): | |
| def __init__(self, auto_clean: bool = True, ignore_clean_errors: bool = True): | |
| self.auto_clean = auto_clean | |
| self.ignore_clean_errors = ignore_clean_errors | |
| self._temp_dir = tempfile.mkdtemp("__temp_fs__") | |
| self._cleaned = False | |
| super().__init__(self._temp_dir) | |
| def close(self): | |
| if self.auto_clean: | |
| self.clean() | |
| super().close() | |
| def clean(self): | |
| if self._cleaned: | |
| return | |
| try: | |
| shutil.rmtree(self._temp_dir) | |
| except Exception as e: | |
| if not self.ignore_clean_errors: | |
| raise OperationFailed( | |
| f"failed to remove temporary directory: {self._temp_dir!r}" | |
| ) from e | |
| self._cleaned = True | |