# gagan-009/plant-disease-classification-transfer-learning architecture

> Architecture diagram of the GitHub repository gagan-009/plant-disease-classification-transfer-learning, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/gagan-009/plant-disease-classification-transfer-learning
- Repository: https://github.com/gagan-009/plant-disease-classification-transfer-learning

## Overview

This repository is currently a small project scaffold, not an implemented classification application. The README documents a planned PlantVillage transfer-learning study and pipeline; the tree contains split CSVs and a dataset-analysis notebook, but no training, evaluation, Grad-CAM, or Streamlit implementation. Those documented stages are shown as planned components with null paths. Edges reflect the README’s stated pipeline, not inspected runtime calls.

Main entry points: [`data/splits`](https://github.com/gagan-009/plant-disease-classification-transfer-learning/tree/main/data/splits) (Train/val/test splits), [`notebooks/01_dataset_analysis.ipynb`](https://github.com/gagan-009/plant-disease-classification-transfer-learning/blob/main/notebooks/01_dataset_analysis.ipynb) (Dataset analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data"]
  node_plantvillage[("PlantVillage dataset")]
  node_preparation["Data preparation"]
  node_splits[("Train/val/test splits")]
  node_dataset_analysis["Dataset analysis"]
end

subgraph group_modeling["Modeling"]
  node_baseline["Baseline CNN"]
  node_feature_extraction["Feature extraction"]
  node_fine_tuning["Fine-tuning"]
  node_architectures["ResNet18, ResNet50, EfficientNet-B0"]
end

subgraph group_analysis["Evaluation and demo"]
  node_evaluation["Model evaluation"]
  node_error_analysis["Error analysis"]
  node_gradcam["Grad-CAM"]
  node_demo["Streamlit demonstration"]
end

node_user(("Demo user"))

node_plantvillage -->|"provides data"| node_preparation
node_preparation -->|"creates splits"| node_splits
node_splits -.->|"analyzed in"| node_dataset_analysis
node_splits -->|"feeds"| node_baseline
node_splits -->|"feeds"| node_feature_extraction
node_splits -->|"feeds"| node_fine_tuning
node_architectures -->|"backbones for"| node_feature_extraction
node_architectures -->|"backbones for"| node_fine_tuning
node_baseline -->|"evaluated by"| node_evaluation
node_feature_extraction -->|"evaluated by"| node_evaluation
node_fine_tuning -->|"evaluated by"| node_evaluation
node_evaluation -->|"followed by"| node_error_analysis
node_error_analysis -->|"followed by"| node_gradcam
node_gradcam -->|"followed by"| node_demo
node_user -.->|"uses"| node_demo

click node_splits "https://github.com/gagan-009/plant-disease-classification-transfer-learning/tree/main/data/splits"
click node_dataset_analysis "https://github.com/gagan-009/plant-disease-classification-transfer-learning/blob/main/notebooks/01_dataset_analysis.ipynb"

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_plantvillage,node_preparation,node_splits,node_dataset_analysis,node_user toneBlue
class node_baseline,node_feature_extraction,node_fine_tuning,node_architectures toneAmber
class node_evaluation,node_error_analysis,node_gradcam,node_demo toneMint
```

## Components

### Data

- **PlantVillage dataset**
- **Data preparation**
- [Train/val/test splits](https://github.com/gagan-009/plant-disease-classification-transfer-learning/tree/main/data/splits): `data/splits`
- [Dataset analysis](https://github.com/gagan-009/plant-disease-classification-transfer-learning/blob/main/notebooks/01_dataset_analysis.ipynb): `notebooks/01_dataset_analysis.ipynb`

### Modeling

- **Baseline CNN**
- **Feature extraction**
- **Fine-tuning**
- **ResNet18, ResNet50, EfficientNet-B0**

### Evaluation and demo

- **Model evaluation**
- **Error analysis**
- **Grad-CAM**
- **Streamlit demonstration**

### Other components

- **Demo user**

## Connections

- PlantVillage dataset → Data preparation: provides data (evidence: `README.md`)
- Data preparation → Train/val/test splits: creates splits (evidence: `README.md`)
- Train/val/test splits → Dataset analysis: analyzed in
- Train/val/test splits → Baseline CNN: feeds (evidence: `README.md`)
- Train/val/test splits → Feature extraction: feeds (evidence: `README.md`)
- Train/val/test splits → Fine-tuning: feeds (evidence: `README.md`)
- ResNet18, ResNet50, EfficientNet-B0 → Feature extraction: backbones for (evidence: `README.md`)
- ResNet18, ResNet50, EfficientNet-B0 → Fine-tuning: backbones for (evidence: `README.md`)
- Baseline CNN → Model evaluation: evaluated by (evidence: `README.md`)
- Feature extraction → Model evaluation: evaluated by (evidence: `README.md`)
- Fine-tuning → Model evaluation: evaluated by (evidence: `README.md`)
- Model evaluation → Error analysis: followed by (evidence: `README.md`)
- Error analysis → Grad-CAM: followed by (evidence: `README.md`)
- Grad-CAM → Streamlit demonstration: followed by (evidence: `README.md`)
- Demo user → Streamlit demonstration: uses
