Starting point, not for direct use. This model is stored as a backbone and starting point for fine-tuning and pipeline development. On held-out flights it is not accurate enough to report species without review; see Evaluation.
Classifies a single wading bird crop from Everglades airplane photos into one of 8 species. It runs on detections from weecology/everglades-bird-airplane.
from deepforest import main
from deepforest.model import CropModel
detector = main.deepforest()
detector.load_model("weecology/everglades-bird-airplane")
detector.model.score_thresh = 0.1
crop_model = CropModel.load_model("weecology/everglades-airplane-species-classifier")
birds = detector.predict_tile(path="DSC_3694.JPG", patch_size=800, patch_overlap=0.1,
crop_model=crop_model)
# birds.cropmodel_label, birds.cropmodel_score
To fine-tune from these weights, load the model and call load_from_disk with your own
train/<class>/ and val/<class>/ crop folders before training.
Training crops are a 300 × 300 px window centred on each bird. Detector
boxes are about 50 px, so the published config sets expand: 125 to widen each box to the
same window. Needs deepforest from GitHub main (after Nov 2026); the 2.1.0 release cannot load
CropModels from the Hub.
Birds marked with the Photoshop Count Tool on airplane photos (Nikon DSLR, 8256 × 5504 px) of Everglades colonies: 21 photos from March–April 2022 and 219 photos from 10 flights in the 2026 season (February–June). Species come from the observers' Photoshop Count Tool groups (codes GREG, SNEG, SMWH, WHIB, WOST, GBHE, ROSP, ANHI). Small White Heron (SMWH; the 2026 typo SMHW included) is its own class. Little Blue Heron and birds with no recorded species are left out.
| Source | Train | Validation | Test |
|---|---|---|---|
| 2022 | 3,912 | 903 | 0 |
| 2026 season | 19,419 | 4,905 | 7,019 |
Test is two whole 2026 flights (2026-02-18 and 2026-05-20), never used in training or for choosing a checkpoint. Validation is a random 20% of the remaining birds within each class, so validation birds come from the same photos as training birds.
DeepForest CropModel (ImageNet ResNet-50), crops resized to 224 px, Adam lr 0.0001,
batch 32, up to 30 epochs, class-balanced sampling, horizontal flips.
Kept the epoch with the lowest validation loss.
| Set | Accuracy | Mean per-class recall |
|---|---|---|
| validation | 0.75 | 0.72 |
| test | 0.61 | 0.52 |
The gap between validation and test shows how optimistic random-bird validation is: new flights differ in light, colony and observer.
| Class | Train crops | Test crops | Validation recall | Test precision | Test recall |
|---|---|---|---|---|---|
| Anhinga | 24 | 0 | 0.29 | – | – |
| Great Blue Heron | 192 | 73 | 0.66 | 0.67 | 0.44 |
| Great Egret | 2030 | 588 | 0.85 | 0.50 | 0.64 |
| Roseate Spoonbill | 796 | 798 | 0.89 | 0.83 | 0.79 |
| Small White Heron | 6789 | 3058 | 0.63 | 0.68 | 0.55 |
| Snowy Egret | 567 | 162 | 0.74 | 0.03 | 0.02 |
| White Ibis | 12611 | 2340 | 0.79 | 0.54 | 0.67 |
| Wood Stork | 322 | 0 | 0.88 | – | – |
Code: weecology/EvergladesAirplane.