Views
No views yet
chbd-yolov11s-chicken-detectorchbd-yolov11s-chicken-detector is an object detection model trained using the Ultralytics YOLOv11s architecture. It is designed to accurately locate and classify chickens within images and video frames, serving as a foundational step for downstream tasks such as chicken counting, density estimation, tracking, and the analysis of anomalous visual behaviors related to health.
vision-object-detection datasets from chicken-health-behavior-multimodal.class_id x_center y_center width height).0.yolov11s.pt1from huggingface_hub import hf_hub_download
2from ultralytics import YOLO
3import os
4
5# Define each Hugging Face details
6repo_id = "IceKhoffi/chicken-object-detection-yolov11s"
7filename = "yolov11s.pt"
8model_path = hf_hub_download(repo_id=repo_id, filename=filename)
9
10# Load the trained model weights
11model = YOLO(model_path)
12
13# Perform inference on an image
14results = model('path/to/your/image.jpg')
15
16# Or on a video stream
17# results = model('path/to/your/video.mp4', stream=True, save=True)
18
19# Process results
20for r in results:
21 boxes = r.boxes # Bounding boxes
22 masks = r.masks # Segmentation masks
23 probs = r.probs # Probabilities
24
25# Save inference results (if save=True in model call)
26# Results are saved to runs/detect/predict by default.