# shaiktareqahamed/capstonemsrcr architecture

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

- Interactive diagram: https://gitdiagram.com/shaiktareqahamed/capstonemsrcr
- Repository: https://github.com/shaiktareqahamed/capstonemsrcr

## Overview

This repository is a small low-light image enhancement workflow: it downloads LOL-v2-Real images, includes an MSRCR enhancement implementation, and evaluates enhanced images with PSNR. The provided excerpts show dataset preparation and evaluation data flows, but not test.py, so its role and connections to the enhancer or results cannot be verified.

Main entry points: [`evaluate.py`](https://github.com/shaiktareqahamed/capstonemsrcr/blob/main/evaluate.py) (PSNR Evaluator), [`prepare_dataset.py`](https://github.com/shaiktareqahamed/capstonemsrcr/blob/main/prepare_dataset.py) (Dataset Downloader), [`hf_lolv2_real/test/low`](https://github.com/shaiktareqahamed/capstonemsrcr/tree/main/hf_lolv2_real/test/low) (Low-Light Images), [`results`](https://github.com/shaiktareqahamed/capstonemsrcr/tree/main/results) (Enhanced Images)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dataset["Dataset Preparation"]
  node_prepare["Dataset Downloader<br/>[prepare_dataset.py]"]
  node_low_images[("Low-Light Images")]
end

subgraph group_enhancement["Enhancement"]
  node_runner["Enhancement Runner<br/>[test.py]"]
  node_msrcr["MSRCR Enhancer<br/>[msrcr.py]"]
end

subgraph group_evaluation["Evaluation"]
  node_results[("Enhanced Images")]
  node_evaluate["PSNR Evaluator<br/>[evaluate.py]"]
  node_metrics["PSNR Scores"]
end

node_user(("User"))
node_hf_dataset[("LOL-v2-Real Dataset")]

node_prepare -->|"loads split"| node_hf_dataset
node_prepare -->|"saves images"| node_low_images
node_evaluate -->|"reads originals"| node_low_images
node_evaluate -->|"reads enhanced"| node_results
node_evaluate -->|"calculates PSNR"| node_metrics

click node_prepare "https://github.com/shaiktareqahamed/capstonemsrcr/blob/main/prepare_dataset.py"
click node_low_images "https://github.com/shaiktareqahamed/capstonemsrcr/tree/main/hf_lolv2_real/test/low"
click node_runner "https://github.com/shaiktareqahamed/capstonemsrcr/blob/main/test.py"
click node_msrcr "https://github.com/shaiktareqahamed/capstonemsrcr/blob/main/models/msrcr.py"
click node_results "https://github.com/shaiktareqahamed/capstonemsrcr/tree/main/results"
click node_evaluate "https://github.com/shaiktareqahamed/capstonemsrcr/blob/main/evaluate.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_prepare,node_low_images,node_user toneBlue
class node_runner,node_msrcr,node_hf_dataset toneAmber
class node_results,node_evaluate,node_metrics toneMint
```

## Components

### Dataset Preparation

- [Dataset Downloader](https://github.com/shaiktareqahamed/capstonemsrcr/blob/main/prepare_dataset.py): `prepare_dataset.py`
- [Low-Light Images](https://github.com/shaiktareqahamed/capstonemsrcr/tree/main/hf_lolv2_real/test/low): `hf_lolv2_real/test/low`

### Enhancement

- [Enhancement Runner](https://github.com/shaiktareqahamed/capstonemsrcr/blob/main/test.py): `test.py`
- [MSRCR Enhancer](https://github.com/shaiktareqahamed/capstonemsrcr/blob/main/models/msrcr.py): `models/msrcr.py`

### Evaluation

- [Enhanced Images](https://github.com/shaiktareqahamed/capstonemsrcr/tree/main/results): `results`
- [PSNR Evaluator](https://github.com/shaiktareqahamed/capstonemsrcr/blob/main/evaluate.py): `evaluate.py`
- **PSNR Scores**

### Other components

- **User**
- **LOL-v2-Real Dataset**

## Connections

- Dataset Downloader → LOL-v2-Real Dataset: loads split (evidence: `prepare_dataset.py`)
- Dataset Downloader → Low-Light Images: saves images (evidence: `prepare_dataset.py`)
- PSNR Evaluator → Low-Light Images: reads originals (evidence: `evaluate.py`)
- PSNR Evaluator → Enhanced Images: reads enhanced (evidence: `evaluate.py`)
- PSNR Evaluator → PSNR Scores: calculates PSNR (evidence: `evaluate.py`)
