Object Detection
ultralytics
yolo
agriculture
livestock
cattle
calving
animal-welfare
computer-vision
Run this model with HF Jobs
Run CowcatcherAI/Calvingcatcher on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/CowcatcherAI/Calvingcatcher. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/CowcatcherAI/Calvingcatcher on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use CowcatcherAI/Calvingcatcher with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use CowcatcherAI/Calvingcatcher 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("CowcatcherAI/Calvingcatcher", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
new readme.md
Browse files37 unmodified lines3839404142434418 unmodified lines6364656667686970718 unmodified lines8081828384858610 unmodified lines97989910010110210310410510610710810911011111211311411511611711811912012112212312412535 unmodified lines16116216316416516616737 unmodified lineslegs, a head coming through. That way the system around the model can reason about *how far along* a cowis, not just whether something is happening.**Our latest and best model is `CalvingcatcherV9.pt`.** It is what we run ourselves.More about the full system: [jacobsfarm.github.io/website/projects/calvingcatcher](https://jacobsfarm.github.io/website/projects/calvingcatcher/)18 unmodified lines| File | Base | Train imgsz / epochs | Size | Notes ||---|---|---|---|---|| **`CalvingcatcherV9.pt`** | `yolo26m` | 1024 / 150 | 44 MB | **What we recommend.** Best precision and recall we have || `calvingcatcherV8.pt` | `yolo26m` | 1024 / 150 | 44 MB | Our previous main model || `CalvingcatcherV7.pt` | `yolo26m` | 960 / 150 | 44 MB | Older 960 px generation, fewer false positives than V8 |All three are Ultralytics 8.4.14 `yolo26m` detection models.8 unmodified lines```pythonfrom ultralytics import YOLOmodel = YOLO("CalvingcatcherV9.pt")results = model.predict("pen_frame.jpg", imgsz=1024, conf=0.40)10 unmodified linesprint("Possible calving in progress:", labels)```Run V9 and V8 at **`imgsz=1024`** and V7 at **`imgsz=960`** — that is what we trained them at. Droppingback to the 640 default costs a noticeable amount of recall on small, distant subjects.---## How our models comparePrecision, recall and total false positives across the versions we trained. `M`/`S`/`L` are theUltralytics size variants, the number is the training resolution.| Version | Model | Precision % | Recall % | Total FP ||---|---|---|---|---|| **V9** | **M1024 (epoch 76)** | **85.9** | **49.6** | 237 || V8 | M1024 | 82.3 | 44.7 | 305 || V8 | S1024 | 84.4 | 38.2 | 177 || V7.1 | L640 | 74.6 | 35.1 | 412 || V7 | M960 | 84.1 | 41.4 | 208 || V6 | M960 | 80.4 | 35.0 | 220 || V5.1 | M960 | 76.3 | 26.7 | 234 || V5 | M960 | 77.7 | 17.3 | 77 |V9 comes out ahead on both precision and recall. Our recall has roughly tripled since V5 (17.3% →49.6%) and precision climbed along with it.### How to read those numbers35 unmodified lines## What it won't do- **It will occasionally raise a false alarm.** Precision is good, not perfect.- **It does not read ear tags.** It tells you something is happening in the pen, not which animal it is.- **It does not replace walking the barn.** We treat it as a monitoring aid; physical checks stayessential and a stockman's judgement is still indispensable.37 unmodified lines3839404142434418 unmodified lines6364656667686970718 unmodified lines8081828384858610 unmodified lines97989910010110210310410510610710810911011111211311411511611711811935 unmodified lines15515615715815916016137 unmodified lineslegs, a head coming through. That way the system around the model can reason about *how far along* a cowis, not just whether something is happening.**Our latest and best model is `CalvingcatcherV10.pt`.** It is what we run ourselves.More about the full system: [jacobsfarm.github.io/website/projects/calvingcatcher](https://jacobsfarm.github.io/website/projects/calvingcatcher/)18 unmodified lines| File | Base | Train imgsz / epochs | Size | Notes ||---|---|---|---|---|| **`CalvingcatcherV10.pt`** | `yolo26m` | 1024 / 150 | 44 MB | **What we recommend.** Best precision and recall we have || `CalvingcatcherV9.pt` | `yolo26m` | 1024 / 150 | 44 MB | Our previous main model || `calvingcatcherV8.pt` | `yolo26m` | 1024 / 150 | 44 MB | An older, reliable model |All three are Ultralytics 8.4.14 `yolo26m` detection models.8 unmodified lines```pythonfrom ultralytics import YOLOmodel = YOLO("CalvingcatcherV10.pt")results = model.predict("pen_frame.jpg", imgsz=1024, conf=0.40)10 unmodified linesprint("Possible calving in progress:", labels)```Run V10, V9 and V8 at **`imgsz=1024`** — that is what we trained them at. Droppingback to the 640 default costs a noticeable amount of recall on small, distant subjects.---## How our models compareThe following metrics are based on a recent standardized test set of 360 images across our newer model generations.| Version | Training Images | Precision % | Recall % | Total FP ||---|---|---|---|---|| **V10** | **18,258** | **94.8** | **54.1** | **8** || V9 | 11,500 | 76.2 | 52.8 | 79 || V8 | 8,700 | 84.7 | 47.8 | 33 || V7 | 6,900 | 78.2 | 35.6 | 49 |V10 comes out significantly ahead on both precision and recall. Thanks to a much larger training set (over 18,000 images), our recall has climbed to 54.1%, and precision reached an impressive 94.8% with drastically reduced false positives (only 8 in our test set).### How to read those numbers35 unmodified lines## What it won't do- **It will occasionally raise a false alarm.** Precision is very good now, but not perfect.- **It does not read ear tags.** It tells you something is happening in the pen, not which animal it is.- **It does not replace walking the barn.** We treat it as a monitoring aid; physical checks stayessential and a stockman's judgement is still indispensable.
README.md+15-21