Instructions to use UWyo/wildlife-black-bear with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use UWyo/wildlife-black-bear 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("UWyo/wildlife-black-bear", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
File size: 1,503 Bytes
005a8b7 e9f8bc8 | 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 | ---
license: cc-by-4.0
library_name: ultralytics
pipeline_tag: object-detection
tags:
- wildlife
- yolo
- yolo26
- object-detection
- camera-trap
- black-bear
---
# Model Card — American Black Bear (*Ursus americanus*)
Single-class detection model for American Black Bear, fine-tuned from the Ultralytics
YOLO26s backbone (pretrained on COCO).
**Model file:** `yolo26s_finetuned_black_bear_by_J.Gong_uwyo_2026-05-28.pt`
## Training Details
| Property | Value |
|----------|-------|
| Base model | yolo26s.pt (COCO pretrained, Ultralytics) |
| Architecture | YOLO26s |
| Input size | 640 × 640 |
| Epochs | 150 |
| Optimizer | MuSGD, lr=0.002, momentum=0.9 |
| Augmentation | mosaic=1.0, degrees=10°, scale=0.5, fliplr=0.5, hsv_h/s/v |
| Device | NVIDIA RTX 5000 Ada Generation (32 GB, CUDA 12.8) |
| Training date | 2026-05-28 |
| Author | Jian Gong, University of Wyoming |
## Dataset
Images sourced from iNaturalist (research-grade observations).
Bounding boxes generated by MegaDetector v5a (confidence ≥ 0.15).
Split 80 / 10 / 10 train / val / test.
| Split | Images |
|-------|-------:|
| train | 157 |
| val | 19 |
| test | 21 |
## Performance
Evaluated on the held-out validation set (best checkpoint).
| Metric | Value |
|--------|------:|
| mAP50 | 0.8077 |
| mAP50-95 | 0.7152 |
## Usage
```python
from ultralytics import YOLO
model = YOLO("models/black_bear/yolo26s_finetuned_black_bear_by_J.Gong_uwyo_2026-05-28.pt")
results = model.predict("image.jpg", conf=0.25)
```
|