Leaderboard¶
Tasks¶
Zero-shot¶
The first task evaluates generalization across geography and acquisition conditions. Selected source datasets are held out from the train split; models are fine-tuned on the remaining sources and evaluated on the held-out test sources (no images from test localities appear in train).
Random¶
The second task is to create the best global detector for individual trees given a set of training and test data. Datasets are split randomly, reflecting information within localities. This is consistent with how most applied users engage with models, by fine-tuning backbone models with sample data from a desired locality.
Cross-geometry¶
Off the shelf tools often limit users for a single annotation type. We have ‘point’ models, ‘box’ models and ‘polygon’ models. To create truly global models for biological inference, we need models that can use all available data, not just one annotation geometry. In particular, polygon annotations are very time consuming to create, but are often desirable for downstream usecases. We opted against polygon training sources, for example polygons to points, as this is an unrealistic, or atleast, very uncommon downstream use case.
Boxes to Polygons¶
All box sources are used to train and predict all polygon sources. There is no local data from the test localities in train.
Points to Polygons¶
All point sources are used to train and predict all polygon sources
Points to Boxes¶
All point sources are used to train and predict all box sources.
Results¶
Fine-tuned panel figures (random + zeroshot splits, ground truth vs prediction) are
generated from training checkpoints via scripts/create_finetuned_visualizations.py
(PNG + SVG under docs/). See repository_structure.md.
TreePoints¶
Fine-tuned (✓) rows train on the MillionTrees train split (training/points/train.py);
pretrained (✗) rows evaluate released weights on the test split (existing_models/).
The TreeFormer point model needs uv sync --group treeformer (DeepForest
treeformer-training
branch until merged to main).
Random¶
Model |
Fine-tuned |
Counting MAE |
Mask-Aware Precision |
Script |
|---|---|---|---|---|
TreeFormer |
✗ |
56.435 |
0.775 |
|
SAM3 |
✗ |
54.593 |
0.711 |
|
TreeFormer |
✓ |
57.461 |
0.784 |
|
Zeroshot split¶
Fine-tuned (✓) rows train on the zeroshot train split (non-held-out sources) and are scored on geographically held-out test sources. Pretrained (✗) rows use a released checkpoint with no MillionTrees training at all.
Model |
Fine-tuned |
Counting MAE |
Mask-Aware Precision |
Script |
|---|---|---|---|---|
TreeFormer |
✗ |
15.717 |
0.882 |
|
SAM3 |
✗ |
14.878 |
0.759 |
|
TreeFormer |
✓ |
17.024 |
0.869 |
|
Cross-geometry¶
Note: Cross-geometry is designed for predicting polygons from other annotation geometries; it is not applicable to point prediction.

TreeBoxes¶
Random¶
Model |
Fine-tuned |
Avg Recall |
Mask-Aware Precision |
Script |
|---|---|---|---|---|
DeepForest |
✓ |
0.526 |
0.650 |
|
DeepForest |
✗ |
0.407 |
0.731 |
|
SAM3 |
✗ |
0.190 |
0.608 |
|
CanopyRS DINO Swin-L |
✗ |
pending |
pending |
|
Zero-shot¶
Model |
Fine-tuned |
Avg Recall |
Mask-Aware Precision |
Script |
|---|---|---|---|---|
DeepForest |
✓ |
0.535 |
0.908 |
|
DeepForest |
✗ |
0.432 |
0.962 |
|
SAM3 |
✗ |
0.209 |
0.798 |
|
CanopyRS DINO Swin-L |
✗ |
pending |
pending |
|
Cross-geometry¶
Note: Cross-geometry splits are designed for predicting polygons from other annotation geometries. The 0.000 scores below reflect that this split is not applicable to box prediction.
Model |
Fine-tuned |
Avg Recall |
Script |
|---|---|---|---|
DeepForest |
✗ |
0.000 |
|
SAM3 |
✗ |
0.000 |
|

TreePolygons¶
Fine-tuned (✓) uses Mask R-CNN (training/polygons/train.py). Pretrained (✗) uses
SAM3 and detectree2.
Random¶
Model |
Fine-tuned |
Avg Mask Accuracy |
Mask-Aware Precision |
Script |
|---|---|---|---|---|
Mask R-CNN |
✓ |
0.416 |
0.900 |
|
detectree2 |
✗ |
0.304 |
0.891 |
|
SAM3 |
✗ |
0.186 |
0.619 |
|
CanopyRS DINO + SAM3 (SelvaMask) |
✗ |
pending |
pending |
|
Zero-shot¶
Model |
Fine-tuned |
Avg Mask Accuracy |
Mask-Aware Precision |
Script |
|---|---|---|---|---|
detectree2 |
✗ |
0.375 |
0.945 |
|
SAM3 |
✗ |
0.165 |
0.663 |
|
Mask R-CNN |
✓ |
0.064 |
0.814 |
|
CanopyRS DINO + SAM3 (SelvaMask) |
✗ |
pending |
pending |
|
Note: The Mask R-CNN ✓ zeroshot row is from the pre-fix polygon evaluator (before GT-mask binarization / AP50; commit b2ff776) and is not directly comparable to the post-fix random row above. Rerun to refresh.
Cross-geometry¶
Model |
Fine-tuned |
Avg Mask Accuracy |
Mask-Aware Precision |
Script |
|---|---|---|---|---|
TreeFormer+SAM2 |
✗ |
0.254 |
0.828 |
|
SAM3 |
✗ |
0.165 |
0.663 |
|

Submissions¶
Submit to the leaderboard¶
Once you have trained a model and evaluated its performance, you can submit your results to the MillionTrees leaderboard. Here’s how:
Create a public repository with your code and model training scripts. Make sure to include:
Clear instructions for reproducing your results
Requirements file listing all dependencies
Training configuration files/parameters
Code for data preprocessing and augmentation
Model architecture definition
Evaluation code
Generate predictions on the test split:
test_dataset = dataset.get_subset("test") # Use test split test_loader = get_eval_loader("standard", test_dataset, batch_size=16) predictions = [] for metadata, images, _ in test_loader: pred = model(images) predictions.append(pred)
Submit a pull request to the MillionTrees repository with:
Link to your code repository
Model description and approach
Performance metrics on test set
Example prediction visualizations
Instructions for reproducing results