# jeraldbucud/yolov11-mango-detection architecture

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

- Interactive diagram: https://gitdiagram.com/jeraldbucud/yolov11-mango-detection
- Repository: https://github.com/jeraldbucud/yolov11-mango-detection

## Overview

This repository is a mango-detection computer-vision project. Its main workflow is dataset-backed YOLOv11-n training and validation in the notebook, selection of a checkpoint, held-out test evaluation, then configurable inference that saves annotated predictions. Separate artifacts document the dataset, checkpoint, and recorded metrics and plots. The inference path is visible in source; training and evaluation relationships are based on the README because the notebook was not sampled.

Main entry points: [`notebooks/yolov11_mango_detection.ipynb`](https://github.com/jeraldbucud/yolov11-mango-detection/blob/main/notebooks/yolov11_mango_detection.ipynb) (Train and evaluate), [`src/predict.py`](https://github.com/jeraldbucud/yolov11-mango-detection/blob/main/src/predict.py) (Inference CLI), [`models/best.pt`](https://github.com/jeraldbucud/yolov11-mango-detection/blob/main/models/best.pt) (YOLO checkpoint), [`models/MODEL_CARD.md`](https://github.com/jeraldbucud/yolov11-mango-detection/blob/main/models/MODEL_CARD.md) (Model card)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Dataset"]
  node_dataset[("Mango dataset")]
  node_data_config["Dataset config<br/>[data.yaml]"]
end

subgraph group_training["Model development"]
  node_training_eval["Train and evaluate"]
  node_checkpoint["YOLO checkpoint<br/>[best.pt]"]
  node_model_card["Model card<br/>[MODEL_CARD.md]"]
  node_metrics["Evaluation metrics"]
  node_graphs["Evaluation graphs"]
end

subgraph group_inference["Inference and results"]
  node_predict["Inference CLI<br/>[predict.py]"]
  node_ultralytics["Ultralytics YOLO"]
  node_inputs["Image or video input"]
  node_predictions["Annotated predictions"]
end

node_user(("Operator"))

node_training_eval -->|"trains on"| node_dataset
node_training_eval -.->|"configures data"| node_data_config
node_training_eval -->|"selects model"| node_checkpoint
node_training_eval -->|"records results"| node_metrics
node_training_eval -->|"produces plots"| node_graphs
node_model_card -->|"documents access"| node_checkpoint
node_user -->|"runs"| node_predict
node_user -->|"provides"| node_inputs
node_predict -->|"loads weights"| node_checkpoint
node_predict -->|"calls prediction"| node_ultralytics
node_predict -->|"passes source"| node_inputs
node_predict -->|"saves outputs"| node_predictions

click node_dataset "https://github.com/jeraldbucud/yolov11-mango-detection/tree/main/data"
click node_data_config "https://github.com/jeraldbucud/yolov11-mango-detection/blob/main/config/data.yaml"
click node_training_eval "https://github.com/jeraldbucud/yolov11-mango-detection/blob/main/notebooks/yolov11_mango_detection.ipynb"
click node_checkpoint "https://github.com/jeraldbucud/yolov11-mango-detection/blob/main/models/best.pt"
click node_model_card "https://github.com/jeraldbucud/yolov11-mango-detection/blob/main/models/MODEL_CARD.md"
click node_metrics "https://github.com/jeraldbucud/yolov11-mango-detection/tree/main/results/metrics"
click node_graphs "https://github.com/jeraldbucud/yolov11-mango-detection/tree/main/results/graphs"
click node_predict "https://github.com/jeraldbucud/yolov11-mango-detection/blob/main/src/predict.py"
click node_predictions "https://github.com/jeraldbucud/yolov11-mango-detection/tree/main/results/predictions"

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_data_config toneBlue
class node_training_eval,node_checkpoint,node_model_card,node_metrics,node_graphs toneAmber
class node_predict,node_ultralytics,node_inputs,node_predictions toneMint
class node_user toneIndigo
```

## Components

### Dataset

- [Mango dataset](https://github.com/jeraldbucud/yolov11-mango-detection/tree/main/data): `data`
- [Dataset config](https://github.com/jeraldbucud/yolov11-mango-detection/blob/main/config/data.yaml): `config/data.yaml`

### Model development

- [Train and evaluate](https://github.com/jeraldbucud/yolov11-mango-detection/blob/main/notebooks/yolov11_mango_detection.ipynb): `notebooks/yolov11_mango_detection.ipynb`
- [YOLO checkpoint](https://github.com/jeraldbucud/yolov11-mango-detection/blob/main/models/best.pt): `models/best.pt`
- [Model card](https://github.com/jeraldbucud/yolov11-mango-detection/blob/main/models/MODEL_CARD.md): `models/MODEL_CARD.md`
- [Evaluation metrics](https://github.com/jeraldbucud/yolov11-mango-detection/tree/main/results/metrics): `results/metrics`
- [Evaluation graphs](https://github.com/jeraldbucud/yolov11-mango-detection/tree/main/results/graphs): `results/graphs`

### Inference and results

- [Inference CLI](https://github.com/jeraldbucud/yolov11-mango-detection/blob/main/src/predict.py): `src/predict.py`
- **Ultralytics YOLO**
- **Image or video input**
- [Annotated predictions](https://github.com/jeraldbucud/yolov11-mango-detection/tree/main/results/predictions): `results/predictions`

### Other components

- **Operator**

## Connections

- Train and evaluate → Mango dataset: trains on (evidence: `README.md`)
- Train and evaluate → Dataset config: configures data
- Train and evaluate → YOLO checkpoint: selects model (evidence: `README.md`)
- Train and evaluate → Evaluation metrics: records results (evidence: `README.md`)
- Train and evaluate → Evaluation graphs: produces plots (evidence: `README.md`)
- Model card → YOLO checkpoint: documents access (evidence: `README.md`)
- Operator → Inference CLI: runs (evidence: `README.md`)
- Operator → Image or video input: provides (evidence: `README.md`)
- Inference CLI → YOLO checkpoint: loads weights (evidence: `src/predict.py`)
- Inference CLI → Ultralytics YOLO: calls prediction (evidence: `src/predict.py`)
- Inference CLI → Image or video input: passes source (evidence: `src/predict.py`)
- Inference CLI → Annotated predictions: saves outputs (evidence: `src/predict.py`)
