Instructions to use ogaith/YOLOv8s-dog-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use ogaith/YOLOv8s-dog-detection with ultralytics:
from ultralytics import YOLOvv8 model = YOLOvv8.from_pretrained("ogaith/YOLOv8s-dog-detection") source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
File size: 1,207 Bytes
826ddf5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | ---
license: apache-2.0
base_model: Ultralytics/YOLOv8
tags:
- ultralytics
- object-detection
- yolo
- yolov8
- dog
pipeline_tag: object-detection
library_name: ultralytics
---
# 🐶 YOLOv8 Dog Detector
This repository contains a finetuned **YOLOv8** model for **detecting dogs** in images.
- **Model:** `best.pt`
- **Dataset:** Google Open Images v7 (~4,000 dog instances)
- **Task:** Object Detection (1 class: `dog`)
---
## 📦 Installation
```bash
pip install ultralytics
```
## 🚀 CLI Usage (recommended for quick testing)
```bash
yolo detect predict \
model=best.pt \
source="assets/runs/detect/val/example1.jpg" \
imgsz=640 \
conf=0.25 \
save=True
```
Batch infer on folder
```bash
yolo detect predict model=best.pt source="images_folder/" imgsz=640 conf=0.25 save=True
```
## 🐍 Python Usage
```bash
from ultralytics import YOLO
# Load model
model = YOLO("best.pt")
# Run prediction
results = model.predict(
source="assets/runs/detect/val/example1.jpg",
conf=0.25,
imgsz=640
)
# Display or save result
results[0].show() # display
# results[0].save() # save to file
```
|