File size: 2,643 Bytes
e7e3b1e
d101237
 
e7e3b1e
 
 
 
 
 
735d8c5
e7e3b1e
ff59a3e
d101237
735d8c5
 
ddd07e5
735d8c5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e7e3b1e
 
 
 
735d8c5
e7e3b1e
735d8c5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ddd07e5
735d8c5
e7e3b1e
d101237
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
language:
- en
license: cc-by-4.0
task_categories:
- image-segmentation
pretty_name: COCOTree Annotation
---

# COCOTree

[**Code**](https://github.com/melonkick3090/COCOTree)

[![COCOTree annotation overview](figures/introduction_annotation.png)](figures/introduction_annotation.pdf)

COCOTree is an annotation-only release for open tree decomposition over
COCO images. Each image has two linked views: a semantic-node tree for local
labels and merged masks, and an instance-node tree for image-local mask
instances and visual parent-child links.

The full original COCO images are not redistributed here. This repository
includes the released annotations, metadata, validation files, and a small
sample folder for inspection.

Click either figure to open the original PDF.

## Annotation Views

Every non-root semantic node has a merged mask, bbox, label, semantic parent,
semantic children, and links to its instance nodes. Every instance node has
its own mask, bbox, label, semantic-node id, semantic parent/children,
instance parent, and instance children.

- Semantic nodes use source tree ids such as `n00014`.
- Instance nodes use image-local ids such as `n00014#1`.
- The synthetic roots are `n00000` and `n00000#1`.
- Masks are encoded as COCO compressed RLE.

## Construction Pipeline

[![COCOTree construction pipeline](figures/COCOTree_recursive_pipeline.png)](figures/COCOTree_recursive_pipeline.pdf)

The pipeline recursively proposes visible child labels, grounds them into
masks, filters invalid candidates, groups repeated masks into semantic nodes,
and materializes instance nodes with parent-child links.

## Dataset Scale

| Item | Count |
| --- | ---: |
| Images | 21,133 |
| Semantic nodes | 554,550 |
| Instance nodes | 1,816,065 |
| Unique labels | 3,508 |
| Max semantic depth | 8 |
| Max instance depth | 8 |

## Files

- `annotations/semantic_nodes.jsonl` and `annotations/semantic_edges.jsonl`:
  semantic tree nodes and edges.
- `annotations/instance_nodes.jsonl` and `annotations/instance_edges.jsonl`:
  instance tree nodes and edges.
- `annotations/image_dual_tree_summary.jsonl`: image-level counts and depth
  summaries.
- `annotations/parent_assignment_warnings.jsonl`: parent-assignment warnings
  from instance tree construction.
- `metadata/`: dataset stats, splits, label vocab, and evaluation protocol.
- `samples/`: small preview subset with images, annotations, overlay examples,
  and `dual_tree_viewer.html`.
- `figures/`: README preview images and the original PDF figures.

## Quick Validation

```bash
python scripts/verify_cocotree.py --release-root .
```

Generated: `2026-05-07T03:36:54Z`