Datasets:
add figure
Browse filesFiles changed (9)
1 unmodified line2341 unmodified line*.json filter=lfs diff=lfs merge=lfs -text*.jpg filter=lfs diff=lfs merge=lfs -text*.png filter=lfs diff=lfs merge=lfs -text1 unmodified line234561 unmodified line*.json filter=lfs diff=lfs merge=lfs -text*.jpg filter=lfs diff=lfs merge=lfs -text*.png filter=lfs diff=lfs merge=lfs -textfigures/COCOTree_recursive_pipeline.pdf filter=lfs diff=lfs merge=lfs -textfigures/introduction_annotation.pdf filter=lfs diff=lfs merge=lfs -text
6 unmodified lines78910111213141516171819202122236 unmodified linespretty_name: COCOTree Annotation---# COCOTree AnnotationCOCOTree provides two linked tree annotations for the same images.- 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`.Every non-root semantic node has a merged mask, bbox, label, semantic parent,semantic children, and the ids of its instance nodes. Every instance node hasits own mask, bbox, label, semantic-node id, semantic parent/children, instanceparent, and instance children.Generated: `2026-05-07T03:36:54Z`6 unmodified lines78910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576776 unmodified linespretty_name: COCOTree Annotation---# COCOTree[](figures/introduction_annotation.pdf)COCOTree v4 is an annotation-only release for open tree decomposition overCOCO images. Each image has two linked views: a semantic-node tree for locallabels and merged masks, and an instance-node tree for image-local maskinstances and visual parent-child links.The full original COCO images are not redistributed here. This repositoryincludes the released annotations, metadata, validation files, and a smallsample folder for inspection.Click either figure to open the original PDF.## Annotation ViewsEvery non-root semantic node has a merged mask, bbox, label, semantic parent,semantic children, and links to its instance nodes. Every instance node hasits 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[](figures/COCOTree_recursive_pipeline.pdf)The pipeline recursively proposes visible child labels, grounds them intomasks, 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 depthsummaries.- `annotations/parent_assignment_warnings.jsonl`: parent-assignment warningsfrom 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```bashpython scripts/verify_cocotree_v4.py --release-root .```Generated: `2026-05-07T03:36:54Z`
123version https://git-lfs.github.com/spec/v1oid sha256:f80938db748e24cdce9e87301d5657c08d30eb8e9fbc8911d9dd8ec6d50361d1size 45314123version https://git-lfs.github.com/spec/v1oid sha256:c244a853eee83982305121c2a4c6a06906dcf91c41725d9604a748cd271bfd60size 47234
123version https://git-lfs.github.com/spec/v1oid sha256:7275763abc6a80d4af441a480806716236a3f78790ba75568769fbdfd599e0f1size 374537123version https://git-lfs.github.com/spec/v1oid sha256:2c37ba68c7372862b14cc0e0add75bed78b57db9ee9ef2be6b99a3551f91f3f1size 390540123version https://git-lfs.github.com/spec/v1oid sha256:0b574ecbf733ebc543a63e4d545c95e04b91c092445122fc3aa8773c35fc63fcsize 5793123version https://git-lfs.github.com/spec/v1oid sha256:dc7e1fcf93f6fa10cd8b6c4c3398a82d64fdd8008bc959a7f12215067b65efa3size 6687
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354from __future__ import annotations
import argparse
import json
from pathlib import Path
SEMANTIC_ROOT_ID = "n00000"
INSTANCE_ROOT_ID = "n00000#1"
def iter_jsonl(path: Path):
with path.open("r", encoding="utf-8") as handle:
for line in handle:
if line.strip():
yield json.loads(line)
def count_jsonl(path: Path) -> int:
return sum(1 for _ in iter_jsonl(path))
def main() -> None:
parser = argparse.ArgumentParser(description="Verify COCOTree release.")
parser.add_argument("--release-root", type=Path, default=Path("."))
args = parser.parse_args()
root = args.release_root.resolve()
required = [
"annotations/semantic_nodes.jsonl",
"annotations/instance_nodes.jsonl",
"annotations/semantic_edges.jsonl",
"annotations/instance_edges.jsonl",
"annotations/image_dual_tree_summary.jsonl",
"metadata/dataset_stats.json",
"samples/dual_tree_viewer.html",
]
missing = [rel for rel in required if not (root / rel).is_file()]
if missing:
raise SystemExit(f"missing files: {missing}")
stats = json.loads((root / "metadata" / "dataset_stats.json").read_text(encoding="utf-8"))
checks = {
"semantic_node_count": count_jsonl(root / "annotations" / "semantic_nodes.jsonl"),
"instance_node_count": count_jsonl(root / "annotations" / "instance_nodes.jsonl"),
"semantic_edge_count_including_root": count_jsonl(root / "annotations" / "semantic_edges.jsonl"),
"instance_edge_count_including_root": count_jsonl(root / "annotations" / "instance_edges.jsonl"),
"image_count": count_jsonl(root / "annotations" / "image_dual_tree_summary.jsonl"),
}
for key, got in checks.items():
if got != int(stats[key]):
raise SystemExit(f"{key} mismatch: {got} != {stats[key]}")
print("COCOTree release OK")
if __name__ == "__main__":
main().gitattributes+2
README.md+60-6
croissant.json+2-2
figures/COCOTree_recursive_pipeline.pdfAdded+3
figures/COCOTree_recursive_pipeline.pngAdded

Large File Pointer Details
- SHA256: d56a2187b58c2fae83b0820124c34694978e7928cb9453ce86246d1eac5b8951
- Pointer size: 131 Bytes
- Size of remote file: 404 kB
figures/introduction_annotation.pdfAdded+3
figures/introduction_annotation.pngAdded

Large File Pointer Details
- SHA256: 0bd410ad3dbf8b25fba556814e0dc4f4fe00ead88ace861e87cfe5d7ebbf30c1
- Pointer size: 132 Bytes
- Size of remote file: 1.58 MB
manifest.json+2-2
scripts/verify_cocotree.pyAdded+54