# danfupo03/plantalyze architecture

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

- Interactive diagram: https://gitdiagram.com/danfupo03/plantalyze
- Repository: https://github.com/danfupo03/plantalyze

## Overview

Plantalyze is a plant-species image-classification project documented through experimental notebooks. Its main workflow is to use the Plants Classification dataset, resize images for each model family, train one of six CNN variants (with augmentation in Models 2, 4, and 5), and assess results with loss and classification metrics. The README documents these capabilities and notebook links, but no source excerpts were provided; relationships below are limited to those explicit statements. The prediction notebook and saved model are present in the tree but their runtime relationship is not documented.

Main entry points: [`plantalyze_model_arq2_v1.ipynb`](https://github.com/danfupo03/plantalyze/blob/main/plantalyze_model_arq2_v1.ipynb) (224px resize), [`README.md`](https://github.com/danfupo03/plantalyze/blob/main/README.md) (Model metrics), [`plantalyze_model_arq2_v2.ipynb`](https://github.com/danfupo03/plantalyze/blob/main/plantalyze_model_arq2_v2.ipynb) (Image augmentation), [`plantalyze_model_arq2_v4.ipynb`](https://github.com/danfupo03/plantalyze/blob/main/plantalyze_model_arq2_v4.ipynb) (Model 4 CNN)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data preparation"]
  node_dataset[("Plant images")]
  node_preprocess0["128px resize"]
  node_preprocess1to5["224px resize"]
  node_augmentation["Image augmentation"]
end

subgraph group_models["Model experiments"]
  node_model0["Model 0 CNN"]
  node_model1["Model 1 CNN"]
  node_model2["Model 2 CNN"]
  node_model3["Model 3 CNN"]
  node_model4["Model 4 CNN"]
  node_model5["Model 5 capsule"]
end

subgraph group_evaluation["Evaluation"]
  node_metrics["Model metrics<br/>[README.md]"]
end

node_dataset -->|"provides images"| node_preprocess0
node_dataset -->|"provides images"| node_preprocess1to5
node_preprocess0 -->|"resizes for"| node_model0
node_preprocess1to5 -->|"resizes for"| node_model1
node_preprocess1to5 -->|"resizes for"| node_model2
node_preprocess1to5 -->|"resizes for"| node_model3
node_preprocess1to5 -->|"resizes for"| node_model4
node_preprocess1to5 -->|"resizes for"| node_model5
node_augmentation -->|"augments training"| node_model2
node_augmentation -->|"augments training"| node_model4
node_augmentation -->|"augments training"| node_model5
node_model0 -->|"reports results"| node_metrics
node_model1 -->|"reports results"| node_metrics
node_model2 -->|"reports results"| node_metrics
node_model3 -->|"reports results"| node_metrics
node_model4 -->|"reports results"| node_metrics
node_model5 -->|"reports results"| node_metrics

click node_preprocess0 "https://github.com/danfupo03/plantalyze/blob/main/plantalyze_model_arq1_v1.ipynb"
click node_preprocess1to5 "https://github.com/danfupo03/plantalyze/blob/main/plantalyze_model_arq2_v1.ipynb"
click node_augmentation "https://github.com/danfupo03/plantalyze/blob/main/plantalyze_model_arq2_v2.ipynb"
click node_model0 "https://github.com/danfupo03/plantalyze/blob/main/plantalyze_model_arq1_v1.ipynb"
click node_model1 "https://github.com/danfupo03/plantalyze/blob/main/plantalyze_model_arq2_v1.ipynb"
click node_model2 "https://github.com/danfupo03/plantalyze/blob/main/plantalyze_model_arq2_v2.ipynb"
click node_model3 "https://github.com/danfupo03/plantalyze/blob/main/plantalyze_model_arq2_v3.ipynb"
click node_model4 "https://github.com/danfupo03/plantalyze/blob/main/plantalyze_model_arq2_v4.ipynb"
click node_model5 "https://github.com/danfupo03/plantalyze/blob/main/plantalyze_model_arq2_v5.ipynb"
click node_metrics "https://github.com/danfupo03/plantalyze/blob/main/README.md"

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_dataset,node_preprocess0,node_preprocess1to5,node_augmentation toneBlue
class node_model0,node_model1,node_model2,node_model3,node_model4,node_model5 toneAmber
class node_metrics toneMint
```

## Components

### Data preparation

- **Plant images**
- [128px resize](https://github.com/danfupo03/plantalyze/blob/main/plantalyze_model_arq1_v1.ipynb): `plantalyze_model_arq1_v1.ipynb`
- [224px resize](https://github.com/danfupo03/plantalyze/blob/main/plantalyze_model_arq2_v1.ipynb): `plantalyze_model_arq2_v1.ipynb`
- [Image augmentation](https://github.com/danfupo03/plantalyze/blob/main/plantalyze_model_arq2_v2.ipynb): `plantalyze_model_arq2_v2.ipynb`

### Model experiments

- [Model 0 CNN](https://github.com/danfupo03/plantalyze/blob/main/plantalyze_model_arq1_v1.ipynb): `plantalyze_model_arq1_v1.ipynb`
- [Model 1 CNN](https://github.com/danfupo03/plantalyze/blob/main/plantalyze_model_arq2_v1.ipynb): `plantalyze_model_arq2_v1.ipynb`
- [Model 2 CNN](https://github.com/danfupo03/plantalyze/blob/main/plantalyze_model_arq2_v2.ipynb): `plantalyze_model_arq2_v2.ipynb`
- [Model 3 CNN](https://github.com/danfupo03/plantalyze/blob/main/plantalyze_model_arq2_v3.ipynb): `plantalyze_model_arq2_v3.ipynb`
- [Model 4 CNN](https://github.com/danfupo03/plantalyze/blob/main/plantalyze_model_arq2_v4.ipynb): `plantalyze_model_arq2_v4.ipynb`
- [Model 5 capsule](https://github.com/danfupo03/plantalyze/blob/main/plantalyze_model_arq2_v5.ipynb): `plantalyze_model_arq2_v5.ipynb`

### Evaluation

- [Model metrics](https://github.com/danfupo03/plantalyze/blob/main/README.md): `README.md`

## Connections

- Plant images → 128px resize: provides images (evidence: `README.md`)
- Plant images → 224px resize: provides images (evidence: `README.md`)
- 128px resize → Model 0 CNN: resizes for (evidence: `README.md`)
- 224px resize → Model 1 CNN: resizes for (evidence: `README.md`)
- 224px resize → Model 2 CNN: resizes for (evidence: `README.md`)
- 224px resize → Model 3 CNN: resizes for (evidence: `README.md`)
- 224px resize → Model 4 CNN: resizes for (evidence: `README.md`)
- 224px resize → Model 5 capsule: resizes for (evidence: `README.md`)
- Image augmentation → Model 2 CNN: augments training (evidence: `README.md`)
- Image augmentation → Model 4 CNN: augments training (evidence: `README.md`)
- Image augmentation → Model 5 capsule: augments training (evidence: `README.md`)
- Model 0 CNN → Model metrics: reports results (evidence: `README.md`)
- Model 1 CNN → Model metrics: reports results (evidence: `README.md`)
- Model 2 CNN → Model metrics: reports results (evidence: `README.md`)
- Model 3 CNN → Model metrics: reports results (evidence: `README.md`)
- Model 4 CNN → Model metrics: reports results (evidence: `README.md`)
- Model 5 capsule → Model metrics: reports results (evidence: `README.md`)
