# yassineisaadam97-prog/object-detection-uxo architecture

> Architecture diagram of the GitHub repository yassineisaadam97-prog/object-detection-uxo, 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/yassineisaadam97-prog/object-detection-uxo
- Repository: https://github.com/yassineisaadam97-prog/object-detection-uxo

## Overview

This is a single-script thermal/radar object-detection fusion pipeline. Its intended workflow pairs thermal images with radar counterparts, runs detection and box fusion, compares predictions with thermal-image labels, then reports detection metrics and plots. The script also includes multi-augmentation thermal inference, radar inference, visualization, and per-detection metric plots. All runtime responsibilities live in one file. The excerpts show label flattening and plotting calls, but omit key inference and fusion call sites, so those relationships are left unverified rather than presented as confirmed control flow.

Main entry points: [`fusion_pipeline_hybrid.py`](https://github.com/yassineisaadam97-prog/object-detection-uxo/blob/main/fusion_pipeline_hybrid.py) (Image pairing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Inputs and inference"]
  node_image_pairs["Image pairing"]
  node_thermal_inference["Thermal inference"]
  node_radar_inference["Radar inference"]
end

subgraph group_fusion["Fusion and evaluation"]
  node_box_fusion["Box fusion"]
  node_label_loading["Ground-truth labels"]
  node_metrics["Detection metrics"]
end

subgraph group_outputs["Results and plots"]
  node_visualization["Fusion visualization"]
  node_roc_plot["ROC plot"]
  node_metric_plots["Metric plots"]
end

node_dataset[("Image and label files")]

node_dataset -.->|"reads pairs"| node_image_pairs
node_image_pairs -->|"builds GT map"| node_label_loading
node_image_pairs -.->|"dispatches"| node_thermal_inference
node_image_pairs -.->|"dispatches"| node_radar_inference
node_thermal_inference -.->|"supplies detections"| node_box_fusion
node_radar_inference -.->|"supplies detections"| node_box_fusion
node_box_fusion -.->|"draws results"| node_visualization
node_box_fusion -.->|"provides predictions"| node_metrics
node_label_loading -.->|"provides GT"| node_metrics
node_metrics -->|"plots ROC"| node_roc_plot
node_metrics -->|"plots metrics"| node_metric_plots

click node_image_pairs "https://github.com/yassineisaadam97-prog/object-detection-uxo/blob/main/fusion_pipeline_hybrid.py"
click node_thermal_inference "https://github.com/yassineisaadam97-prog/object-detection-uxo/blob/main/fusion_pipeline_hybrid.py"
click node_radar_inference "https://github.com/yassineisaadam97-prog/object-detection-uxo/blob/main/fusion_pipeline_hybrid.py"
click node_box_fusion "https://github.com/yassineisaadam97-prog/object-detection-uxo/blob/main/fusion_pipeline_hybrid.py"
click node_label_loading "https://github.com/yassineisaadam97-prog/object-detection-uxo/blob/main/fusion_pipeline_hybrid.py"
click node_metrics "https://github.com/yassineisaadam97-prog/object-detection-uxo/blob/main/fusion_pipeline_hybrid.py"
click node_visualization "https://github.com/yassineisaadam97-prog/object-detection-uxo/blob/main/fusion_pipeline_hybrid.py"
click node_roc_plot "https://github.com/yassineisaadam97-prog/object-detection-uxo/blob/main/fusion_pipeline_hybrid.py"
click node_metric_plots "https://github.com/yassineisaadam97-prog/object-detection-uxo/blob/main/fusion_pipeline_hybrid.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_image_pairs,node_thermal_inference,node_radar_inference toneBlue
class node_box_fusion,node_label_loading,node_metrics,node_dataset toneAmber
class node_visualization,node_roc_plot,node_metric_plots toneMint
```

## Components

### Inputs and inference

- [Image pairing](https://github.com/yassineisaadam97-prog/object-detection-uxo/blob/main/fusion_pipeline_hybrid.py): `fusion_pipeline_hybrid.py`
- [Thermal inference](https://github.com/yassineisaadam97-prog/object-detection-uxo/blob/main/fusion_pipeline_hybrid.py): `fusion_pipeline_hybrid.py`
- [Radar inference](https://github.com/yassineisaadam97-prog/object-detection-uxo/blob/main/fusion_pipeline_hybrid.py): `fusion_pipeline_hybrid.py`

### Fusion and evaluation

- [Box fusion](https://github.com/yassineisaadam97-prog/object-detection-uxo/blob/main/fusion_pipeline_hybrid.py): `fusion_pipeline_hybrid.py`
- [Ground-truth labels](https://github.com/yassineisaadam97-prog/object-detection-uxo/blob/main/fusion_pipeline_hybrid.py): `fusion_pipeline_hybrid.py`
- [Detection metrics](https://github.com/yassineisaadam97-prog/object-detection-uxo/blob/main/fusion_pipeline_hybrid.py): `fusion_pipeline_hybrid.py`

### Results and plots

- [Fusion visualization](https://github.com/yassineisaadam97-prog/object-detection-uxo/blob/main/fusion_pipeline_hybrid.py): `fusion_pipeline_hybrid.py`
- [ROC plot](https://github.com/yassineisaadam97-prog/object-detection-uxo/blob/main/fusion_pipeline_hybrid.py): `fusion_pipeline_hybrid.py`
- [Metric plots](https://github.com/yassineisaadam97-prog/object-detection-uxo/blob/main/fusion_pipeline_hybrid.py): `fusion_pipeline_hybrid.py`

### Other components

- **Image and label files**

## Connections

- Image and label files → Image pairing: reads pairs
- Image pairing → Ground-truth labels: builds GT map (evidence: `fusion_pipeline_hybrid.py`)
- Image pairing → Thermal inference: dispatches (evidence: `fusion_pipeline_hybrid.py`)
- Image pairing → Radar inference: dispatches (evidence: `fusion_pipeline_hybrid.py`)
- Thermal inference → Box fusion: supplies detections (evidence: `fusion_pipeline_hybrid.py`)
- Radar inference → Box fusion: supplies detections (evidence: `fusion_pipeline_hybrid.py`)
- Box fusion → Fusion visualization: draws results (evidence: `fusion_pipeline_hybrid.py`)
- Box fusion → Detection metrics: provides predictions (evidence: `fusion_pipeline_hybrid.py`)
- Ground-truth labels → Detection metrics: provides GT (evidence: `fusion_pipeline_hybrid.py`)
- Detection metrics → ROC plot: plots ROC (evidence: `fusion_pipeline_hybrid.py`)
- Detection metrics → Metric plots: plots metrics (evidence: `fusion_pipeline_hybrid.py`)
