# d4krzyk/masterworkve-2.0 architecture

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

- Interactive diagram: https://gitdiagram.com/d4krzyk/masterworkve-2.0
- Repository: https://github.com/d4krzyk/masterworkve-2.0

## Overview

This repository is a master’s-research project studying how acoustic angular density affects depth prediction. The main workflow is to render binaural echoes alongside RGB and depth, train/evaluate depth and orientation-pretext models, then analyze experiment results. The graph also preserves the documented simulator, diagnostic, and physical-measurement branches. The README describes the research workflow; sampled source and the SOURCE INDEX provide only partial implementation detail, so uncertain internal calls are omitted.

Main entry points: [`my-operations/generate_echo_dataset.py`](https://github.com/d4krzyk/masterworkve-2.0/blob/main/my-operations/generate_echo_dataset.py) (Dataset generator), [`sound-spaces/soundspaces`](https://github.com/d4krzyk/masterworkve-2.0/tree/main/sound-spaces/soundspaces) (SoundSpaces), [`my-operations/ml/dataset`](https://github.com/d4krzyk/masterworkve-2.0/tree/main/my-operations/ml/dataset) (Dataset loading), [`my-operations/ml/depth_model`](https://github.com/d4krzyk/masterworkve-2.0/tree/main/my-operations/ml/depth_model) (Depth training)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_generation["Echo generation"]
  node_controller["Generation controller<br/>[echo_ctl.py]"]
  node_generator["Dataset generator"]
  node_echo_core["Echo rendering core"]
  node_dataset[("Echo dataset")]
end

subgraph group_simulation["Simulation stack"]
  node_soundspaces["SoundSpaces"]
  node_habitat_sim["Habitat simulator<br/>[simulator.py]"]
  node_habitat_lab["Tasks and environments"]
end

subgraph group_learning["Model experiments"]
  node_loader["Dataset loading"]
  node_depth_model["Depth training"]
  node_pretext["Pretext and probing<br/>[probe.py]"]
  node_matrix["Experiment matrix"]
end

subgraph group_research["Analysis and measurements"]
  node_diagnostics["Engine diagnostics"]
  node_measurements["Physical measurements"]
  node_analysis["Results analysis<br/>[final_results.py]"]
  node_thesis_numbers["Thesis metrics<br/>[thesis_numbers.py]"]
end

node_researcher(("Researcher"))
node_hf[("Hugging Face dataset")]

node_researcher -->|"runs generation"| node_controller
node_controller -->|"dispatches"| node_generator
node_generator -.->|"renders echoes"| node_echo_core
node_generator -.->|"uses simulator"| node_soundspaces
node_soundspaces -->|"uses framework"| node_habitat_lab
node_soundspaces -->|"configures simulator"| node_habitat_sim
node_generator -->|"writes samples"| node_dataset
node_dataset -->|"published as"| node_hf
node_dataset -->|"loads samples"| node_loader
node_loader -->|"feeds training"| node_depth_model
node_loader -->|"feeds pretraining"| node_pretext
node_matrix -.->|"defines experiments"| node_depth_model
node_matrix -.->|"defines experiments"| node_pretext
node_depth_model -->|"produces results"| node_analysis
node_pretext -->|"produces probes"| node_analysis
node_analysis -->|"supplies metrics"| node_thesis_numbers
node_diagnostics -.->|"measures engine"| node_habitat_sim
node_measurements -.->|"measures acoustics"| node_habitat_sim

click node_controller "https://github.com/d4krzyk/masterworkve-2.0/blob/main/my-operations/echo_ctl.py"
click node_generator "https://github.com/d4krzyk/masterworkve-2.0/blob/main/my-operations/generate_echo_dataset.py"
click node_echo_core "https://github.com/d4krzyk/masterworkve-2.0/tree/main/my-operations/echo_core"
click node_soundspaces "https://github.com/d4krzyk/masterworkve-2.0/tree/main/sound-spaces/soundspaces"
click node_habitat_sim "https://github.com/d4krzyk/masterworkve-2.0/blob/main/habitat-sim/src_python/habitat_sim/simulator.py"
click node_habitat_lab "https://github.com/d4krzyk/masterworkve-2.0/tree/main/habitat-lab/habitat/core"
click node_diagnostics "https://github.com/d4krzyk/masterworkve-2.0/tree/main/my-operations/diagnostics"
click node_measurements "https://github.com/d4krzyk/masterworkve-2.0/tree/main/my-operations/measurements"
click node_loader "https://github.com/d4krzyk/masterworkve-2.0/tree/main/my-operations/ml/dataset"
click node_depth_model "https://github.com/d4krzyk/masterworkve-2.0/tree/main/my-operations/ml/depth_model"
click node_pretext "https://github.com/d4krzyk/masterworkve-2.0/blob/main/my-operations/ml/pretext_model/probe.py"
click node_matrix "https://github.com/d4krzyk/masterworkve-2.0/tree/main/my-operations/ml/matrix"
click node_analysis "https://github.com/d4krzyk/masterworkve-2.0/blob/main/my-operations/ml/analysis/final_results.py"
click node_thesis_numbers "https://github.com/d4krzyk/masterworkve-2.0/blob/main/my-operations/ml/analysis/thesis_numbers.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_controller,node_generator,node_echo_core,node_dataset toneBlue
class node_soundspaces,node_habitat_sim,node_habitat_lab,node_hf toneAmber
class node_loader,node_depth_model,node_pretext,node_matrix toneMint
class node_diagnostics,node_measurements,node_analysis,node_thesis_numbers toneRose
class node_researcher toneIndigo
```

## Components

### Echo generation

- [Generation controller](https://github.com/d4krzyk/masterworkve-2.0/blob/main/my-operations/echo_ctl.py): `my-operations/echo_ctl.py`
- [Dataset generator](https://github.com/d4krzyk/masterworkve-2.0/blob/main/my-operations/generate_echo_dataset.py): `my-operations/generate_echo_dataset.py`
- [Echo rendering core](https://github.com/d4krzyk/masterworkve-2.0/tree/main/my-operations/echo_core): `my-operations/echo_core`
- **Echo dataset**

### Simulation stack

- [SoundSpaces](https://github.com/d4krzyk/masterworkve-2.0/tree/main/sound-spaces/soundspaces): `sound-spaces/soundspaces`
- [Habitat simulator](https://github.com/d4krzyk/masterworkve-2.0/blob/main/habitat-sim/src_python/habitat_sim/simulator.py): `habitat-sim/src_python/habitat_sim/simulator.py`
- [Tasks and environments](https://github.com/d4krzyk/masterworkve-2.0/tree/main/habitat-lab/habitat/core): `habitat-lab/habitat/core`

### Model experiments

- [Dataset loading](https://github.com/d4krzyk/masterworkve-2.0/tree/main/my-operations/ml/dataset): `my-operations/ml/dataset`
- [Depth training](https://github.com/d4krzyk/masterworkve-2.0/tree/main/my-operations/ml/depth_model): `my-operations/ml/depth_model`
- [Pretext and probing](https://github.com/d4krzyk/masterworkve-2.0/blob/main/my-operations/ml/pretext_model/probe.py): `my-operations/ml/pretext_model/probe.py`
- [Experiment matrix](https://github.com/d4krzyk/masterworkve-2.0/tree/main/my-operations/ml/matrix): `my-operations/ml/matrix`

### Analysis and measurements

- [Engine diagnostics](https://github.com/d4krzyk/masterworkve-2.0/tree/main/my-operations/diagnostics): `my-operations/diagnostics`
- [Physical measurements](https://github.com/d4krzyk/masterworkve-2.0/tree/main/my-operations/measurements): `my-operations/measurements`
- [Results analysis](https://github.com/d4krzyk/masterworkve-2.0/blob/main/my-operations/ml/analysis/final_results.py): `my-operations/ml/analysis/final_results.py`
- [Thesis metrics](https://github.com/d4krzyk/masterworkve-2.0/blob/main/my-operations/ml/analysis/thesis_numbers.py): `my-operations/ml/analysis/thesis_numbers.py`

### Other components

- **Researcher**
- **Hugging Face dataset**

## Connections

- Researcher → Generation controller: runs generation
- Generation controller → Dataset generator: dispatches (evidence: `my-operations/echo_ctl.py`)
- Dataset generator → Echo rendering core: renders echoes
- Dataset generator → SoundSpaces: uses simulator
- SoundSpaces → Tasks and environments: uses framework (evidence: `sound-spaces/soundspaces/simulator.py`)
- SoundSpaces → Habitat simulator: configures simulator (evidence: `sound-spaces/soundspaces/simulator.py`)
- Dataset generator → Echo dataset: writes samples
- Echo dataset → Hugging Face dataset: published as
- Echo dataset → Dataset loading: loads samples
- Dataset loading → Depth training: feeds training
- Dataset loading → Pretext and probing: feeds pretraining
- Experiment matrix → Depth training: defines experiments
- Experiment matrix → Pretext and probing: defines experiments
- Depth training → Results analysis: produces results
- Pretext and probing → Results analysis: produces probes
- Results analysis → Thesis metrics: supplies metrics (evidence: `my-operations/ml/analysis/thesis_numbers.py`)
- Engine diagnostics → Habitat simulator: measures engine
- Physical measurements → Habitat simulator: measures acoustics
