# jaehakim97/blurhand_release architecture

> Architecture diagram of the GitHub repository jaehakim97/blurhand_release, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jaehakim97/blurhand_release
- Repository: https://github.com/jaehakim97/blurhand_release

## Overview

BlurHand is a research system for recovering a temporally ordered 3D hand-mesh sequence from a single blurry image. Its principal workflow is image input through BlurHandNet’s visual encoding, temporal unfolding, feature enhancement and hand-parameter regression, followed by MANO mesh generation and evaluation or visualization. Training and testing are separate entry points; BlurHand and InterHand26M provide dataset support. The graph reflects the shown imports and calls; testing and some unsampled subsystem links are left unverified where evidence is limited.

Main entry points: [`src/models/blurhandnet.py`](https://github.com/jaehakim97/blurhand_release/blob/master/src/models/blurhandnet.py) (BlurHandNet), [`src/data/BlurHand.py`](https://github.com/jaehakim97/blurhand_release/blob/master/src/data/BlurHand.py) (BlurHand dataset), [`src/utils/MANO/__init__.py`](https://github.com/jaehakim97/blurhand_release/blob/master/src/utils/MANO/__init__.py) (MANO hand interface), [`src/models/modules/regressor.py`](https://github.com/jaehakim97/blurhand_release/blob/master/src/models/modules/regressor.py) (Hand parameter regressor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data preparation"]
  node_blurhand_data["BlurHand dataset<br/>[BlurHand.py]"]
  node_interhand_data["InterHand26M dataset<br/>[InterHand26M.py]"]
  node_multi_dataset["Dataset combiner"]
  node_preprocess["Image preprocessing<br/>[preprocessing.py]"]
  node_transforms["Coordinate transforms<br/>[transforms.py]"]
end

subgraph group_network["Temporal hand model"]
  node_network_model["BlurHandNet<br/>[blurhandnet.py]"]
  node_backbone["Image backbone<br/>[resnetbackbone.py]"]
  node_unfolder["Temporal unfolding<br/>[unfolder.py]"]
  node_ktformer["Temporal feature transformer<br/>[ktformer.py]"]
  node_regressor["Hand parameter regressor<br/>[regressor.py]"]
  node_layer_utils["Neural layer helpers<br/>[layer_utils.py]"]
  node_losses["Training losses<br/>[losses.py]"]
end

subgraph group_runtime["Training and evaluation"]
  node_train["Training entry point<br/>[train.py]"]
  node_test["Testing entry point<br/>[test.py]"]
  node_visualize["Mesh visualization<br/>[visualize.py]"]
  node_objfile["OBJ file support<br/>[objfile.py]"]
end

subgraph group_geometry["Hand geometry"]
  node_mano_api["MANO hand interface<br/>[__init__.py]"]
  node_body_model["MANO body model<br/>[body_models.py]"]
  node_lbs["Linear blend skinning<br/>[lbs.py]"]
  node_vertex_selector["Vertex joint selector"]
end

node_user(("Research user"))

node_user -.->|"starts training"| node_train
node_user -.->|"requests testing"| node_test
node_train -->|"builds batches"| node_multi_dataset
node_train -->|"trains model"| node_network_model
node_multi_dataset -.->|"combines datasets"| node_blurhand_data
node_blurhand_data -->|"uses preprocessing"| node_preprocess
node_blurhand_data -->|"uses transforms"| node_transforms
node_blurhand_data -->|"uses hand model"| node_mano_api
node_blurhand_data -->|"visualizes results"| node_visualize
node_interhand_data -->|"uses preprocessing"| node_preprocess
node_interhand_data -->|"uses transforms"| node_transforms
node_interhand_data -->|"uses hand model"| node_mano_api
node_network_model -->|"extracts features"| node_backbone
node_network_model -->|"unfolds time"| node_unfolder
node_network_model -->|"enhances features"| node_ktformer
node_network_model -->|"regresses parameters"| node_regressor
node_network_model -->|"computes losses"| node_losses
node_unfolder -->|"builds layers"| node_layer_utils
node_regressor -->|"builds layers"| node_layer_utils
node_regressor -->|"reads hand metadata"| node_mano_api
node_regressor -->|"converts rotations"| node_transforms
node_network_model -->|"generates hand coordinates"| node_mano_api
node_mano_api -->|"creates MANO model"| node_body_model
node_body_model -->|"uses skinning"| node_lbs
node_body_model -->|"selects joints"| node_vertex_selector
node_test -.->|"runs inference"| node_network_model
node_test -.->|"evaluates predictions"| node_blurhand_data
node_visualize -->|"uses OBJ support"| node_objfile

click node_blurhand_data "https://github.com/jaehakim97/blurhand_release/blob/master/src/data/BlurHand.py"
click node_interhand_data "https://github.com/jaehakim97/blurhand_release/blob/master/src/data/InterHand26M.py"
click node_multi_dataset "https://github.com/jaehakim97/blurhand_release/blob/master/src/data/multiple_dataset.py"
click node_preprocess "https://github.com/jaehakim97/blurhand_release/blob/master/src/utils/preprocessing.py"
click node_transforms "https://github.com/jaehakim97/blurhand_release/blob/master/src/utils/transforms.py"
click node_train "https://github.com/jaehakim97/blurhand_release/blob/master/src/train.py"
click node_test "https://github.com/jaehakim97/blurhand_release/blob/master/src/test.py"
click node_network_model "https://github.com/jaehakim97/blurhand_release/blob/master/src/models/blurhandnet.py"
click node_backbone "https://github.com/jaehakim97/blurhand_release/blob/master/src/models/modules/resnetbackbone.py"
click node_unfolder "https://github.com/jaehakim97/blurhand_release/blob/master/src/models/modules/unfolder.py"
click node_ktformer "https://github.com/jaehakim97/blurhand_release/blob/master/src/models/modules/ktformer.py"
click node_regressor "https://github.com/jaehakim97/blurhand_release/blob/master/src/models/modules/regressor.py"
click node_layer_utils "https://github.com/jaehakim97/blurhand_release/blob/master/src/models/modules/layer_utils.py"
click node_losses "https://github.com/jaehakim97/blurhand_release/blob/master/src/losses.py"
click node_mano_api "https://github.com/jaehakim97/blurhand_release/blob/master/src/utils/MANO/__init__.py"
click node_body_model "https://github.com/jaehakim97/blurhand_release/blob/master/src/utils/MANO/smplx/smplx/body_models.py"
click node_lbs "https://github.com/jaehakim97/blurhand_release/blob/master/src/utils/MANO/smplx/smplx/lbs.py"
click node_vertex_selector "https://github.com/jaehakim97/blurhand_release/blob/master/src/utils/MANO/smplx/smplx/vertex_joint_selector.py"
click node_visualize "https://github.com/jaehakim97/blurhand_release/blob/master/src/utils/visualize.py"
click node_objfile "https://github.com/jaehakim97/blurhand_release/blob/master/src/utils/objfile.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_blurhand_data,node_interhand_data,node_multi_dataset,node_preprocess,node_transforms,node_user toneBlue
class node_network_model,node_backbone,node_unfolder,node_ktformer,node_regressor,node_layer_utils,node_losses toneAmber
class node_train,node_test,node_visualize,node_objfile toneMint
class node_mano_api,node_body_model,node_lbs,node_vertex_selector toneRose
```

## Components

### Data preparation

- [BlurHand dataset](https://github.com/jaehakim97/blurhand_release/blob/master/src/data/BlurHand.py): `src/data/BlurHand.py`
- [InterHand26M dataset](https://github.com/jaehakim97/blurhand_release/blob/master/src/data/InterHand26M.py): `src/data/InterHand26M.py`
- [Dataset combiner](https://github.com/jaehakim97/blurhand_release/blob/master/src/data/multiple_dataset.py): `src/data/multiple_dataset.py`
- [Image preprocessing](https://github.com/jaehakim97/blurhand_release/blob/master/src/utils/preprocessing.py): `src/utils/preprocessing.py`
- [Coordinate transforms](https://github.com/jaehakim97/blurhand_release/blob/master/src/utils/transforms.py): `src/utils/transforms.py`

### Temporal hand model

- [BlurHandNet](https://github.com/jaehakim97/blurhand_release/blob/master/src/models/blurhandnet.py): `src/models/blurhandnet.py`
- [Image backbone](https://github.com/jaehakim97/blurhand_release/blob/master/src/models/modules/resnetbackbone.py): `src/models/modules/resnetbackbone.py`
- [Temporal unfolding](https://github.com/jaehakim97/blurhand_release/blob/master/src/models/modules/unfolder.py): `src/models/modules/unfolder.py`
- [Temporal feature transformer](https://github.com/jaehakim97/blurhand_release/blob/master/src/models/modules/ktformer.py): `src/models/modules/ktformer.py`
- [Hand parameter regressor](https://github.com/jaehakim97/blurhand_release/blob/master/src/models/modules/regressor.py): `src/models/modules/regressor.py`
- [Neural layer helpers](https://github.com/jaehakim97/blurhand_release/blob/master/src/models/modules/layer_utils.py): `src/models/modules/layer_utils.py`
- [Training losses](https://github.com/jaehakim97/blurhand_release/blob/master/src/losses.py): `src/losses.py`

### Training and evaluation

- [Training entry point](https://github.com/jaehakim97/blurhand_release/blob/master/src/train.py): `src/train.py`
- [Testing entry point](https://github.com/jaehakim97/blurhand_release/blob/master/src/test.py): `src/test.py`
- [Mesh visualization](https://github.com/jaehakim97/blurhand_release/blob/master/src/utils/visualize.py): `src/utils/visualize.py`
- [OBJ file support](https://github.com/jaehakim97/blurhand_release/blob/master/src/utils/objfile.py): `src/utils/objfile.py`

### Hand geometry

- [MANO hand interface](https://github.com/jaehakim97/blurhand_release/blob/master/src/utils/MANO/__init__.py): `src/utils/MANO/__init__.py`
- [MANO body model](https://github.com/jaehakim97/blurhand_release/blob/master/src/utils/MANO/smplx/smplx/body_models.py): `src/utils/MANO/smplx/smplx/body_models.py`
- [Linear blend skinning](https://github.com/jaehakim97/blurhand_release/blob/master/src/utils/MANO/smplx/smplx/lbs.py): `src/utils/MANO/smplx/smplx/lbs.py`
- [Vertex joint selector](https://github.com/jaehakim97/blurhand_release/blob/master/src/utils/MANO/smplx/smplx/vertex_joint_selector.py): `src/utils/MANO/smplx/smplx/vertex_joint_selector.py`

### Other components

- **Research user**

## Connections

- Research user → Training entry point: starts training (evidence: `README.md`)
- Research user → Testing entry point: requests testing (evidence: `README.md`)
- Training entry point → Dataset combiner: builds batches (evidence: `src/train.py`)
- Training entry point → BlurHandNet: trains model (evidence: `src/train.py`)
- Dataset combiner → BlurHand dataset: combines datasets
- BlurHand dataset → Image preprocessing: uses preprocessing (evidence: `src/data/BlurHand.py`)
- BlurHand dataset → Coordinate transforms: uses transforms (evidence: `src/data/BlurHand.py`)
- BlurHand dataset → MANO hand interface: uses hand model (evidence: `src/data/BlurHand.py`)
- BlurHand dataset → Mesh visualization: visualizes results (evidence: `src/data/BlurHand.py`)
- InterHand26M dataset → Image preprocessing: uses preprocessing (evidence: `src/data/InterHand26M.py`)
- InterHand26M dataset → Coordinate transforms: uses transforms (evidence: `src/data/InterHand26M.py`)
- InterHand26M dataset → MANO hand interface: uses hand model (evidence: `src/data/InterHand26M.py`)
- BlurHandNet → Image backbone: extracts features (evidence: `src/models/blurhandnet.py`)
- BlurHandNet → Temporal unfolding: unfolds time (evidence: `src/models/blurhandnet.py`)
- BlurHandNet → Temporal feature transformer: enhances features (evidence: `src/models/blurhandnet.py`)
- BlurHandNet → Hand parameter regressor: regresses parameters (evidence: `src/models/blurhandnet.py`)
- BlurHandNet → Training losses: computes losses (evidence: `src/models/blurhandnet.py`)
- Temporal unfolding → Neural layer helpers: builds layers (evidence: `src/models/modules/unfolder.py`)
- Hand parameter regressor → Neural layer helpers: builds layers (evidence: `src/models/modules/regressor.py`)
- Hand parameter regressor → MANO hand interface: reads hand metadata (evidence: `src/models/modules/regressor.py`)
- Hand parameter regressor → Coordinate transforms: converts rotations (evidence: `src/models/modules/regressor.py`)
- BlurHandNet → MANO hand interface: generates hand coordinates (evidence: `src/models/blurhandnet.py`)
- MANO hand interface → MANO body model: creates MANO model (evidence: `src/utils/MANO/__init__.py`)
- MANO body model → Linear blend skinning: uses skinning (evidence: `src/utils/MANO/smplx/smplx/body_models.py`)
- MANO body model → Vertex joint selector: selects joints (evidence: `src/utils/MANO/smplx/smplx/body_models.py`)
- Testing entry point → BlurHandNet: runs inference
- Testing entry point → BlurHand dataset: evaluates predictions
- Mesh visualization → OBJ file support: uses OBJ support (evidence: `src/utils/visualize.py`)
