Instructions to use mayanktak15/yolo8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use mayanktak15/yolo8 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("mayanktak15/yolo8", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
Download src/utils/logger.py from mayanktak15/yolo8: direct link, hf CLI and curl.
- Browser
- Download file 350 Bytes
-
https://huggingface.co/mayanktak15/yolo8/resolve/main/src/utils/logger.py
- Command line
-
hf download hf://mayanktak15/yolo8/src/utils/logger.py
-
curl -L -o logger.py https://huggingface.co/mayanktak15/yolo8/resolve/main/src/utils/logger.py
350 Bytes
| """Logging setup.""" | |
| from __future__ import annotations | |
| import logging | |
| def setup_logger(level: str = "INFO") -> logging.Logger: | |
| logging.basicConfig( | |
| level=getattr(logging, level.upper(), logging.INFO), | |
| format="%(asctime)s | %(levelname)s | %(name)s | %(message)s", | |
| ) | |
| return logging.getLogger("multi_object_tracking") | |