image_id int64 38.9k 44.3k | filename stringlengths 23 25 | country stringclasses 1
value | state stringclasses 1
value | zone stringclasses 3
values | region stringclasses 1
value | width int64 400 400 | height int64 400 400 | coco_annotations stringlengths 245 39.9k | coco_categories stringclasses 1
value | image_bytes unknown |
|---|---|---|---|---|---|---|---|---|---|---|
41,480 | 0060A59MGW_chipid141.tiff | India | Rajasthan | TRANSITIONAL_INLAND_DRAINAGE | North | 400 | 400 | "[{\"id\":1137594,\"image_id\":41480,\"category_id\":1,\"segmentation\":{\"counts\":[116018,3,391,9,(...TRUNCATED) | [{"id":1,"name":"Kejri Tree","supercategory":""}] | "SUkqAAgAAAAKAAABBAABAAAAkAEAAAEBBAABAAAAkAEAAAIBAwADAAAAhgAAAAMBAwABAAAAAQAAAAYBAwABAAAAAgAAABEBBAA(...TRUNCATED) |
43,798 | 013REXC4PT_chipid319.tiff | India | Rajasthan | SEMI_ARID_EASTERN_PLAINS | North | 400 | 400 | "[{\"id\":1194349,\"image_id\":43798,\"category_id\":1,\"segmentation\":{\"counts\":[23208,5,394,7,3(...TRUNCATED) | [{"id":1,"name":"Kejri Tree","supercategory":""}] | "SUkqAAgAAAAKAAABBAABAAAAkAEAAAEBBAABAAAAkAEAAAIBAwADAAAAhgAAAAMBAwABAAAAAQAAAAYBAwABAAAAAgAAABEBBAA(...TRUNCATED) |
42,578 | 01QESLN6BV_chipid140.tiff | India | Rajasthan | SUB_HUMID_SOUTHERN_PLAINS_ARAVALLI | North | 400 | 400 | "[{\"id\":1179153,\"image_id\":42578,\"category_id\":1,\"segmentation\":{\"counts\":[84743,1,1,1,391(...TRUNCATED) | [{"id":1,"name":"Kejri Tree","supercategory":""}] | "SUkqAAgAAAAKAAABBAABAAAAkAEAAAEBBAABAAAAkAEAAAIBAwADAAAAhgAAAAMBAwABAAAAAQAAAAYBAwABAAAAAgAAABEBBAA(...TRUNCATED) |
42,213 | 02K8CCU108_chipid187.tiff | India | Rajasthan | TRANSITIONAL_INLAND_DRAINAGE | North | 400 | 400 | "[{\"id\":1160503,\"image_id\":42213,\"category_id\":1,\"segmentation\":{\"counts\":[25959,4,394,8,3(...TRUNCATED) | [{"id":1,"name":"Kejri Tree","supercategory":""}] | "SUkqAAgAAAAKAAABBAABAAAAkAEAAAEBBAABAAAAkAEAAAIBAwADAAAAhgAAAAMBAwABAAAAAQAAAAYBAwABAAAAAgAAABEBBAA(...TRUNCATED) |
43,799 | 04QH2HP0QH_chipid409.tiff | India | Rajasthan | SEMI_ARID_EASTERN_PLAINS | North | 400 | 400 | "[{\"id\":1194351,\"image_id\":43799,\"category_id\":1,\"segmentation\":{\"counts\":[96485,2,395,7,3(...TRUNCATED) | [{"id":1,"name":"Kejri Tree","supercategory":""}] | "SUkqAAgAAAAKAAABBAABAAAAkAEAAAEBBAABAAAAkAEAAAIBAwADAAAAhgAAAAMBAwABAAAAAQAAAAYBAwABAAAAAgAAABEBBAA(...TRUNCATED) |
38,898 | 056ZQNYAMS_chipid71.tiff | India | Rajasthan | SEMI_ARID_EASTERN_PLAINS | North | 400 | 400 | "[{\"id\":1066854,\"image_id\":38898,\"category_id\":1,\"segmentation\":{\"counts\":[61596,3,396,5,3(...TRUNCATED) | [{"id":1,"name":"Kejri Tree","supercategory":""}] | "SUkqAAgAAAAKAAABBAABAAAAkAEAAAEBBAABAAAAkAEAAAIBAwADAAAAhgAAAAMBAwABAAAAAQAAAAYBAwABAAAAAgAAABEBBAA(...TRUNCATED) |
43,801 | 05EH33ZU5M_chipid157.tiff | India | Rajasthan | SEMI_ARID_EASTERN_PLAINS | North | 400 | 400 | "[{\"id\":1194352,\"image_id\":43801,\"category_id\":1,\"segmentation\":{\"counts\":[59842,6,392,10,(...TRUNCATED) | [{"id":1,"name":"Kejri Tree","supercategory":""}] | "SUkqAAgAAAAKAAABBAABAAAAkAEAAAEBBAABAAAAkAEAAAIBAwADAAAAhgAAAAMBAwABAAAAAQAAAAYBAwABAAAAAgAAABEBBAA(...TRUNCATED) |
42,579 | 05ETJL932X_chipid213.tiff | India | Rajasthan | SUB_HUMID_SOUTHERN_PLAINS_ARAVALLI | North | 400 | 400 | "[{\"id\":1179172,\"image_id\":42579,\"category_id\":1,\"segmentation\":{\"counts\":[96330,4,394,7,3(...TRUNCATED) | [{"id":1,"name":"Kejri Tree","supercategory":""}] | "SUkqAAgAAAAKAAABBAABAAAAkAEAAAEBBAABAAAAkAEAAAIBAwADAAAAhgAAAAMBAwABAAAAAQAAAAYBAwABAAAAAgAAABEBBAA(...TRUNCATED) |
42,580 | 0705AAH1OP_chipid381.tiff | India | Rajasthan | SUB_HUMID_SOUTHERN_PLAINS_ARAVALLI | North | 400 | 400 | "[{\"id\":1179174,\"image_id\":42580,\"category_id\":1,\"segmentation\":{\"counts\":[144802,1,397,4,(...TRUNCATED) | [{"id":1,"name":"Kejri Tree","supercategory":""}] | "SUkqAAgAAAAKAAABBAABAAAAkAEAAAEBBAABAAAAkAEAAAIBAwADAAAAhgAAAAMBAwABAAAAAQAAAAYBAwABAAAAAgAAABEBBAA(...TRUNCATED) |
38,899 | 07T4TR4ASJ_chipid432.tiff | India | Rajasthan | SEMI_ARID_EASTERN_PLAINS | North | 400 | 400 | "[{\"id\":1066994,\"image_id\":38899,\"category_id\":1,\"segmentation\":{\"counts\":[33053,6,393,8,3(...TRUNCATED) | [{"id":1,"name":"Kejri Tree","supercategory":""}] | "SUkqAAgAAAAKAAABBAABAAAAkAEAAAEBBAABAAAAkAEAAAIBAwADAAAAhgAAAAMBAwABAAAAAQAAAAYBAwABAAAAAgAAABEBBAA(...TRUNCATED) |
- What is a config?
- Shared test sets
- Available base configs (8)
- Step 1 — Clone the dataset repository (to get the export tool)
- Step 2 — Install dependencies
- Step 3 — Pick a config
- Step 4 — Export to COCO (one command)
- Output structure
- Install
- Load a config (gets train / id_test / ood_test)
- What each example contains
Tree Distribution Shift — Satellite Tree Detection (COCO + HF Datasets)
This is a dataset containing ~30K COCO tree crown annotated satellite image tiles of 400x400 px dimensions. These annotations come from all states in India and California in the United States. This dataset is organized as configs (distribution shift benchmarks). Each config provides three splits:
train— 90% of the in-distribution poolid_test— 10% held-out from the in-distribution poolood_test— out-of-distribution pool (base configs use the full OOD pool)
What is a config?
A config fully defines a benchmark setting (e.g., country shift, biome shift, region shift). When you select a config, you automatically get:
trainsplitid_testsplitood_testsplit
No filtering or custom split logic is required.
Shared test sets
Configs come in pairs. The in-distribution split is always 90/10 train/id_test, and base configs use the full opposing pool as ood_test.
| Config | train | id_test | ood_test |
|---|---|---|---|
intl_train_IN__ood_US |
90% of India | 10% of India | all US |
intl_train_US__ood_IN |
90% of US | 10% of US | all India |
Few-shot variants (__fs1, __fs10, __fs100, __fsall) move K images from ood_test into train.
Available base configs (8)
| # | Config name | Shift type | Train on | OOD from |
|---|---|---|---|---|
| 1 | intl_train_IN__ood_US |
Country | India | US |
| 2 | intl_train_US__ood_IN |
Country | US | India |
| 3 | biome_Rajasthan_train_WET__ood_DRY |
Biome | Rajasthan WET | Rajasthan DRY |
| 4 | biome_Rajasthan_train_DRY__ood_WET |
Biome | Rajasthan DRY | Rajasthan WET |
| 5 | elev_Karnataka_train_HIGH__ood_LOW |
Elevation | Karnataka HIGH | Karnataka LOW |
| 6 | elev_Karnataka_train_LOW__ood_HIGH |
Elevation | Karnataka LOW | Karnataka HIGH |
| 7 | region_train_North__ood_South |
Region | North India | South India |
| 8 | region_train_South__ood_North |
Region | South India | North India |
For each base config, there are 4 few-shot variants:
__fs1__fs10__fs100__fsall
Total configs = 8 base + 32 few-shot = 40.
Export to COCO (recommended for training)
Use this when you want a standard COCO folder structure that works with most CV frameworks (Detectron2, MMDetection, torchvision detection, etc.).
Step 1 — Clone the dataset repository (to get the export tool)
git clone https://huggingface.co/datasets/aadityabuilds/tree-distribution-shift
cd tree-distribution-shift
Step 2 — Install dependencies
pip install datasets huggingface_hub orjson
Step 3 — Pick a config
Go to the dataset page and choose a config from the Configs section:
https://huggingface.co/datasets/aadityabuilds/tree-distribution-shift
Example config:
intl_train_IN__ood_US
Step 4 — Export to COCO (one command)
python tools/export_coco.py \
--repo aadityabuilds/tree-distribution-shift \
--config intl_train_IN__ood_US \
--out ./coco_out
Output structure
coco_out/
└── intl_train_IN__ood_US/
├── train/
│ ├── images/
│ │ └── *.tiff
│ └── annotations/
│ └── instances_train.json
├── id_test/
│ ├── images/
│ └── annotations/
│ └── instances_id_test.json
└── ood_test/
├── images/
└── annotations/
└── instances_ood_test.json
Load with Hugging Face Datasets (recommended for analysis / prototyping)
Use this when you want programmatic access (e.g., notebooks, statistics, custom pipelines) without writing files to disk.
Install
pip install datasets
Load a config (gets train / id_test / ood_test)
from datasets import load_dataset
ds = load_dataset(
"aadityabuilds/tree-distribution-shift",
"intl_train_IN__ood_US"
)
train = ds["train"]
id_test = ds["id_test"]
ood_test = ds["ood_test"]
print(ds)
print(len(train), len(id_test), len(ood_test))
print(train[0].keys())
What each example contains
Each row includes:
image_bytes(raw image bytes)coco_annotations(COCO annotations for that image)coco_categories(COCO categories)- metadata fields (country, state, zone, region, biome, etc.)
- Downloads last month
- 54,573