# glguru/blight_detection architecture

> Architecture diagram of the GitHub repository glguru/blight_detection, 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/glguru/blight_detection
- Repository: https://github.com/glguru/blight_detection

## Overview

This is a small notebook-based project for tomato and apple leaf blight detection. The tree identifies image-preparation, image-counting, model-testing, and U-Net notebooks, plus saved model files and a counts file. The README only names the project and “Topple net”; notebook contents were not provided, so their exact behavior and any calls or data flow between them cannot be verified. The graph therefore records the visible components without asserting relationships.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_notebooks["Notebook workflows"]
  node_bw["Black-white creation<br/>[create_bw.ipynb]"]
  node_counts["Image counts<br/>[image_counts.ipynb]"]
  node_model_tests["Model tests<br/>[model_tests.ipynb]"]
  node_unet["U-Net<br/>[u_net.ipynb]"]
  node_unet_res["U-Net residual<br/>[u_net_res.ipynb]"]
  node_unet_attention["U-Net attention"]
end

subgraph group_artifacts["Data and models"]
  node_counts_file["Counts data<br/>[Counts.txt]"]
  node_model_base["Tomato model<br/>[tomato_lab_1.h5]"]
  node_model_aresu["Tomato model A"]
  node_model_resu1["Tomato model B"]
  node_model_resu2["Tomato model C"]
end

click node_bw "https://github.com/glguru/blight_detection/blob/main/create_bw.ipynb"
click node_counts "https://github.com/glguru/blight_detection/blob/main/image_counts.ipynb"
click node_model_tests "https://github.com/glguru/blight_detection/blob/main/model_tests.ipynb"
click node_unet "https://github.com/glguru/blight_detection/blob/main/u_net.ipynb"
click node_unet_res "https://github.com/glguru/blight_detection/blob/main/u_net_res.ipynb"
click node_unet_attention "https://github.com/glguru/blight_detection/blob/main/u_net_res_attention.ipynb"
click node_counts_file "https://github.com/glguru/blight_detection/blob/main/Counts.txt"
click node_model_base "https://github.com/glguru/blight_detection/blob/main/tomato_lab_1.h5"
click node_model_aresu "https://github.com/glguru/blight_detection/blob/main/tomato_lab_aresu1.h5"
click node_model_resu1 "https://github.com/glguru/blight_detection/blob/main/tomato_lab_resu1.h5"
click node_model_resu2 "https://github.com/glguru/blight_detection/blob/main/tomato_lab_resu2.h5"

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_bw,node_counts,node_model_tests,node_unet,node_unet_res,node_unet_attention toneBlue
class node_counts_file,node_model_base,node_model_aresu,node_model_resu1,node_model_resu2 toneAmber
```

## Components

### Notebook workflows

- [Black-white creation](https://github.com/glguru/blight_detection/blob/main/create_bw.ipynb): `create_bw.ipynb`
- [Image counts](https://github.com/glguru/blight_detection/blob/main/image_counts.ipynb): `image_counts.ipynb`
- [Model tests](https://github.com/glguru/blight_detection/blob/main/model_tests.ipynb): `model_tests.ipynb`
- [U-Net](https://github.com/glguru/blight_detection/blob/main/u_net.ipynb): `u_net.ipynb`
- [U-Net residual](https://github.com/glguru/blight_detection/blob/main/u_net_res.ipynb): `u_net_res.ipynb`
- [U-Net attention](https://github.com/glguru/blight_detection/blob/main/u_net_res_attention.ipynb): `u_net_res_attention.ipynb`

### Data and models

- [Counts data](https://github.com/glguru/blight_detection/blob/main/Counts.txt): `Counts.txt`
- [Tomato model](https://github.com/glguru/blight_detection/blob/main/tomato_lab_1.h5): `tomato_lab_1.h5`
- [Tomato model A](https://github.com/glguru/blight_detection/blob/main/tomato_lab_aresu1.h5): `tomato_lab_aresu1.h5`
- [Tomato model B](https://github.com/glguru/blight_detection/blob/main/tomato_lab_resu1.h5): `tomato_lab_resu1.h5`
- [Tomato model C](https://github.com/glguru/blight_detection/blob/main/tomato_lab_resu2.h5): `tomato_lab_resu2.h5`
