# toyeshc/open-hummingbird-3d-eval architecture

> Architecture diagram of the GitHub repository toyeshc/open-hummingbird-3d-eval, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/toyeshc/open-hummingbird-3d-eval
- Repository: https://github.com/toyeshc/open-hummingbird-3d-eval

## Overview

Open Hummingbird Evaluation is a vision-encoder evaluation system for segmentation, with particular support for multi-view MVImgNet. The principal workflow selects a dataset and encoder, builds image/mask loaders and transforms, extracts patch features, uses a nearest-neighbor memory to produce predictions, and computes segmentation metrics such as mIoU. The central evaluation module coordinates the documented dataset and search alternatives. The README also describes GPU FAISS, configurable memory, camera extrinsics, and encoder variety. Some implementations are only indexed or documented here, so edges show only evidenced wiring; unsampled details are not inferred.

Main entry points: [`hbird/hbird_eval.py`](https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/hbird_eval.py) (Hummingbird evaluation), [`eval.py`](https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/eval.py) (Evaluation CLI), [`hbird/utils/transforms.py`](https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/utils/transforms.py) (Image transforms), [`hbird/nn/search_faiss.py`](https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/nn/search_faiss.py) (FAISS search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Evaluation entry"]
  node_cli["Evaluation CLI<br/>[eval.py]"]
  node_coordinator["Hummingbird evaluation<br/>[hbird_eval.py]"]
end

subgraph group_data["Datasets and transforms"]
  node_ade["ADE20K loader<br/>[ade20k_data.py]"]
  node_city["Cityscapes loader<br/>[cityscapes_data.py]"]
  node_coco["COCO loader<br/>[coco_data.py]"]
  node_mvimgnet["MVImgNet loader<br/>[mvimgnet_data.py]"]
  node_voc["VOC loader<br/>[voc_data.py]"]
  node_transforms["Image transforms<br/>[transforms.py]"]
  node_imageops["Paired image operations"]
end

subgraph group_features["Features and search"]
  node_models["Model adapters<br/>[models.py]"]
  node_loader["Encoder loader<br/>[loading_models.py]"]
  node_extractor["Patch features"]
  node_searchbase["Search interface<br/>[search_base.py]"]
  node_faiss["FAISS search<br/>[search_faiss.py]"]
  node_scann["ScaNN search<br/>[search_scann.py]"]
end

subgraph group_scoring["Metrics"]
  node_metrics["Segmentation metrics<br/>[eval_metrics.py]"]
end

node_user(("Evaluation user"))

node_user -->|"runs evaluation"| node_cli
node_cli -->|"invokes evaluation"| node_coordinator
node_cli -->|"uses features"| node_extractor
node_coordinator -->|"selects dataset"| node_ade
node_coordinator -->|"selects dataset"| node_city
node_coordinator -->|"selects dataset"| node_coco
node_coordinator -->|"selects dataset"| node_mvimgnet
node_coordinator -->|"selects dataset"| node_voc
node_coordinator -->|"configures transforms"| node_transforms
node_transforms -->|"uses operations"| node_imageops
node_coordinator -->|"uses model definitions"| node_models
node_loader -->|"loads VGGT adapter"| node_extractor
node_coordinator -->|"computes metrics"| node_metrics
node_coordinator -->|"dispatches search"| node_faiss
node_coordinator -->|"dispatches search"| node_scann
node_faiss -->|"implements interface"| node_searchbase
node_scann -->|"implements interface"| node_searchbase

click node_cli "https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/eval.py"
click node_coordinator "https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/hbird_eval.py"
click node_ade "https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/data/ade20k_data.py"
click node_city "https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/data/cityscapes_data.py"
click node_coco "https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/data/coco_data.py"
click node_mvimgnet "https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/data/mvimgnet_data.py"
click node_voc "https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/data/voc_data.py"
click node_transforms "https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/utils/transforms.py"
click node_imageops "https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/utils/image_transformations.py"
click node_models "https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/models.py"
click node_loader "https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/utils/loading_models.py"
click node_extractor "https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/utils/feature_extractors.py"
click node_searchbase "https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/nn/search_base.py"
click node_faiss "https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/nn/search_faiss.py"
click node_scann "https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/nn/search_scann.py"
click node_metrics "https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/utils/eval_metrics.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cli,node_coordinator,node_user toneBlue
class node_ade,node_city,node_coco,node_mvimgnet,node_voc,node_transforms,node_imageops toneAmber
class node_models,node_loader,node_extractor,node_searchbase,node_faiss,node_scann toneMint
class node_metrics toneRose
```

## Components

### Evaluation entry

- [Evaluation CLI](https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/eval.py): `eval.py`
- [Hummingbird evaluation](https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/hbird_eval.py): `hbird/hbird_eval.py`

### Datasets and transforms

- [ADE20K loader](https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/data/ade20k_data.py): `hbird/data/ade20k_data.py`
- [Cityscapes loader](https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/data/cityscapes_data.py): `hbird/data/cityscapes_data.py`
- [COCO loader](https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/data/coco_data.py): `hbird/data/coco_data.py`
- [MVImgNet loader](https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/data/mvimgnet_data.py): `hbird/data/mvimgnet_data.py`
- [VOC loader](https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/data/voc_data.py): `hbird/data/voc_data.py`
- [Image transforms](https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/utils/transforms.py): `hbird/utils/transforms.py`
- [Paired image operations](https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/utils/image_transformations.py): `hbird/utils/image_transformations.py`

### Features and search

- [Model adapters](https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/models.py): `hbird/models.py`
- [Encoder loader](https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/utils/loading_models.py): `hbird/utils/loading_models.py`
- [Patch features](https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/utils/feature_extractors.py): `hbird/utils/feature_extractors.py`
- [Search interface](https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/nn/search_base.py): `hbird/nn/search_base.py`
- [FAISS search](https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/nn/search_faiss.py): `hbird/nn/search_faiss.py`
- [ScaNN search](https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/nn/search_scann.py): `hbird/nn/search_scann.py`

### Metrics

- [Segmentation metrics](https://github.com/toyeshc/open-hummingbird-3d-eval/blob/main/hbird/utils/eval_metrics.py): `hbird/utils/eval_metrics.py`

### Other components

- **Evaluation user**

## Connections

- Evaluation user → Evaluation CLI: runs evaluation (evidence: `README.md`)
- Evaluation CLI → Hummingbird evaluation: invokes evaluation (evidence: `eval.py`)
- Evaluation CLI → Patch features: uses features (evidence: `eval.py`)
- Hummingbird evaluation → ADE20K loader: selects dataset (evidence: `hbird/hbird_eval.py`)
- Hummingbird evaluation → Cityscapes loader: selects dataset (evidence: `hbird/hbird_eval.py`)
- Hummingbird evaluation → COCO loader: selects dataset (evidence: `hbird/hbird_eval.py`)
- Hummingbird evaluation → MVImgNet loader: selects dataset (evidence: `hbird/hbird_eval.py`)
- Hummingbird evaluation → VOC loader: selects dataset (evidence: `hbird/hbird_eval.py`)
- Hummingbird evaluation → Image transforms: configures transforms (evidence: `hbird/hbird_eval.py`)
- Image transforms → Paired image operations: uses operations (evidence: `hbird/utils/transforms.py`)
- Hummingbird evaluation → Model adapters: uses model definitions (evidence: `hbird/hbird_eval.py`)
- Encoder loader → Patch features: loads VGGT adapter (evidence: `hbird/utils/loading_models.py`)
- Hummingbird evaluation → Segmentation metrics: computes metrics (evidence: `hbird/hbird_eval.py`)
- Hummingbird evaluation → FAISS search: dispatches search (evidence: `hbird/hbird_eval.py`)
- Hummingbird evaluation → ScaNN search: dispatches search (evidence: `hbird/hbird_eval.py`)
- FAISS search → Search interface: implements interface (evidence: `hbird/nn/search_faiss.py`)
- ScaNN search → Search interface: implements interface (evidence: `hbird/nn/search_scann.py`)
