Object Detection
ultralytics
LiteRT
ONNX
Vietnamese
English
yolo
drone-detection
anti-uav
object-tracking
fpv
Instructions to use pnt2110/anti_done with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use pnt2110/anti_done 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("pnt2110/anti_done", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
Download scripts/remove_legacy_artifacts.py from pnt2110/anti_done: direct link, hf CLI and curl.
- Browser
- Download file 878 Bytes
-
https://huggingface.co/pnt2110/anti_done/resolve/main/scripts/remove_legacy_artifacts.py
- Command line
-
hf download hf://pnt2110/anti_done/scripts/remove_legacy_artifacts.py
-
curl -L -o remove_legacy_artifacts.py https://huggingface.co/pnt2110/anti_done/resolve/main/scripts/remove_legacy_artifacts.py
878 Bytes
| from __future__ import annotations | |
| import shutil | |
| from pathlib import Path | |
| ROOT = Path(__file__).resolve().parents[1] | |
| ARTIFACTS = (ROOT / "artifacts").resolve() | |
| REMOVE = {"benchmarks", "experiments", "exports", "integration", "maintenance", "transfer_cache"} | |
| KEEP = {"deploy", "deploy-320", "production-candidate", "releases", "models"} | |
| if ARTIFACTS.parent != ROOT or not ARTIFACTS.is_dir(): | |
| raise SystemExit(f"Unexpected artifacts root: {ARTIFACTS}") | |
| if REMOVE & KEEP: | |
| raise SystemExit("Remove/keep sets overlap") | |
| removed = [] | |
| for name in sorted(REMOVE): | |
| target = (ARTIFACTS / name).resolve() | |
| if target.parent != ARTIFACTS: | |
| raise SystemExit(f"Refusing out-of-scope target: {target}") | |
| if target.exists(): | |
| shutil.rmtree(target) | |
| removed.append(name) | |
| print("removed=" + ",".join(removed)) | |
| print("preserved=" + ",".join(sorted(KEEP))) | |