# maty-bohacek/spoter architecture

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

- Interactive diagram: https://gitdiagram.com/maty-bohacek/spoter
- Repository: https://github.com/maty-bohacek/spoter

## Overview

SPOTER is a research codebase for word-level sign-language recognition from skeletal sequences. Its main workflow accepts prepared CSV datasets, loads them for training, applies Gaussian-noise augmentation, trains the SPOTER Transformer, and evaluates checkpoints. The repository also includes dataset-structuring scripts and a separate hand/body normalization workflow. README-described general augmentations and dataset support are shown as capabilities, but their wiring is omitted where the sampled source does not establish it.

Main entry points: [`train.py`](https://github.com/maty-bohacek/spoter/blob/main/train.py) (Training orchestration), [`normalization/main.py`](https://github.com/maty-bohacek/spoter/blob/main/normalization/main.py) (Normalization workflow), [`data_structurization/autsl.py`](https://github.com/maty-bohacek/spoter/blob/main/data_structurization/autsl.py) (AUTSL structuring), [`datasets/czech_slr_dataset.py`](https://github.com/maty-bohacek/spoter/blob/main/datasets/czech_slr_dataset.py) (CSV dataset loader)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data preparation"]
  node_autsl["AUTSL structuring<br/>[autsl.py]"]
  node_wlasl["WLASL structuring<br/>[wlasl.py]"]
  node_prepared_data["Skeletal CSV data"]
  node_augmentations["Pose augmentations"]
  node_dataset["CSV dataset loader"]
end

subgraph group_norm["Pose normalization"]
  node_normalization_main["Normalization workflow<br/>[main.py]"]
  node_hand_norm["Hand normalization"]
  node_body_norm["Body normalization"]
end

subgraph group_recognition["Recognition model"]
  node_model["SPOTER Transformer<br/>[spoter_model.py]"]
end

subgraph group_training["Training and evaluation"]
  node_trainer["Training orchestration<br/>[train.py]"]
  node_noise["Gaussian noise<br/>[gaussian_noise.py]"]
  node_split_utils["Dataset split helpers<br/>[utils.py]"]
  node_epoch_eval["Epoch and evaluation<br/>[utils.py]"]
end

node_researcher(("Researcher"))

node_researcher -->|"configures and runs"| node_trainer
node_normalization_main -->|"calls"| node_hand_norm
node_normalization_main -->|"calls"| node_body_norm
node_trainer -->|"constructs"| node_dataset
node_trainer -->|"applies"| node_noise
node_trainer -->|"constructs"| node_model
node_trainer -->|"uses split helpers"| node_split_utils
node_trainer -->|"runs training and evaluation"| node_epoch_eval
node_autsl -->|"organizes video clips"| node_prepared_data

click node_autsl "https://github.com/maty-bohacek/spoter/blob/main/data_structurization/autsl.py"
click node_wlasl "https://github.com/maty-bohacek/spoter/blob/main/data_structurization/wlasl.py"
click node_augmentations "https://github.com/maty-bohacek/spoter/tree/main/augmentations"
click node_normalization_main "https://github.com/maty-bohacek/spoter/blob/main/normalization/main.py"
click node_hand_norm "https://github.com/maty-bohacek/spoter/blob/main/normalization/hand_normalization.py"
click node_body_norm "https://github.com/maty-bohacek/spoter/blob/main/normalization/body_normalization.py"
click node_dataset "https://github.com/maty-bohacek/spoter/blob/main/datasets/czech_slr_dataset.py"
click node_trainer "https://github.com/maty-bohacek/spoter/blob/main/train.py"
click node_noise "https://github.com/maty-bohacek/spoter/blob/main/spoter/gaussian_noise.py"
click node_split_utils "https://github.com/maty-bohacek/spoter/blob/main/utils.py"
click node_model "https://github.com/maty-bohacek/spoter/blob/main/spoter/spoter_model.py"
click node_epoch_eval "https://github.com/maty-bohacek/spoter/blob/main/spoter/utils.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_autsl,node_wlasl,node_prepared_data,node_augmentations,node_dataset toneBlue
class node_normalization_main,node_hand_norm,node_body_norm toneAmber
class node_model toneMint
class node_trainer,node_noise,node_split_utils,node_epoch_eval toneRose
class node_researcher toneIndigo
```

## Components

### Data preparation

- [AUTSL structuring](https://github.com/maty-bohacek/spoter/blob/main/data_structurization/autsl.py): `data_structurization/autsl.py`
- [WLASL structuring](https://github.com/maty-bohacek/spoter/blob/main/data_structurization/wlasl.py): `data_structurization/wlasl.py`
- **Skeletal CSV data**
- [Pose augmentations](https://github.com/maty-bohacek/spoter/tree/main/augmentations): `augmentations`
- [CSV dataset loader](https://github.com/maty-bohacek/spoter/blob/main/datasets/czech_slr_dataset.py): `datasets/czech_slr_dataset.py`

### Pose normalization

- [Normalization workflow](https://github.com/maty-bohacek/spoter/blob/main/normalization/main.py): `normalization/main.py`
- [Hand normalization](https://github.com/maty-bohacek/spoter/blob/main/normalization/hand_normalization.py): `normalization/hand_normalization.py`
- [Body normalization](https://github.com/maty-bohacek/spoter/blob/main/normalization/body_normalization.py): `normalization/body_normalization.py`

### Recognition model

- [SPOTER Transformer](https://github.com/maty-bohacek/spoter/blob/main/spoter/spoter_model.py): `spoter/spoter_model.py`

### Training and evaluation

- [Training orchestration](https://github.com/maty-bohacek/spoter/blob/main/train.py): `train.py`
- [Gaussian noise](https://github.com/maty-bohacek/spoter/blob/main/spoter/gaussian_noise.py): `spoter/gaussian_noise.py`
- [Dataset split helpers](https://github.com/maty-bohacek/spoter/blob/main/utils.py): `utils.py`
- [Epoch and evaluation](https://github.com/maty-bohacek/spoter/blob/main/spoter/utils.py): `spoter/utils.py`

### Other components

- **Researcher**

## Connections

- Researcher → Training orchestration: configures and runs (evidence: `README.md`)
- Normalization workflow → Hand normalization: calls (evidence: `normalization/main.py`)
- Normalization workflow → Body normalization: calls (evidence: `normalization/main.py`)
- Training orchestration → CSV dataset loader: constructs (evidence: `train.py`)
- Training orchestration → Gaussian noise: applies (evidence: `train.py`)
- Training orchestration → SPOTER Transformer: constructs (evidence: `train.py`)
- Training orchestration → Dataset split helpers: uses split helpers (evidence: `train.py`)
- Training orchestration → Epoch and evaluation: runs training and evaluation (evidence: `train.py`)
- AUTSL structuring → Skeletal CSV data: organizes video clips (evidence: `data_structurization/autsl.py`)
