# mwahyur46/oilpalm-tree-detection-yolov26 architecture

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

- Interactive diagram: https://gitdiagram.com/mwahyur46/oilpalm-tree-detection-yolov26
- Repository: https://github.com/mwahyur46/oilpalm-tree-detection-yolov26

## Overview

This repository is a notebook-driven oil-palm tree detection pipeline for remote-sensing imagery. The principal workflow prepares raster imagery into tiles, uses annotated tiles to train and evaluate YOLO, then runs tile-wise detection, filters nearby duplicate detections, and exports tree centroids as GeoJSON for GIS use. Documented branches include optional fine-tuning and a YOLOv26 comparison. The README documents these stages, but notebook internals were not sampled; the comparison notebook is also absent from the supplied tree, so its path is unspecified.

Main entry points: [`raster_data/tiles`](https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/tree/main/raster_data/tiles) (Raster tiles), [`Oilpalm-Tree-Detection-2`](https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/tree/main/Oilpalm-Tree-Detection-2) (Tile annotation), [`02_model_train_eval.ipynb`](https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/blob/main/02_model_train_eval.ipynb) (YOLOv12 training), [`Model`](https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/tree/main/Model) (Trained weights)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_prep["Raster Preparation"]
  node_prepare["Convert and tile"]
  node_tiles["Raster tiles"]
end

subgraph group_data["Annotation Data"]
  node_annotate["Tile annotation"]
  node_labels["Labeled splits"]
end

subgraph group_models["Modeling"]
  node_train["YOLOv12 training"]
  node_evaluate["Model evaluation"]
  node_weights["Trained weights"]
  node_finetune["Optional fine-tuning<br/>[04_fine_tune.ipynb]"]
  node_compare["YOLOv26 comparison"]
end

subgraph group_inference["Geospatial Inference"]
  node_infer["Tile inference"]
  node_filter["Proximity filter"]
  node_geojson["Centroid GeoJSON"]
end

node_analyst(("Pipeline user"))
node_rasters["Source rasters"]
node_gis(("GIS user"))
node_roboflow{{"Roboflow"}}

node_analyst -->|"runs"| node_prepare
node_rasters -->|"provides imagery"| node_prepare
node_prepare -->|"writes tiles"| node_tiles
node_tiles -->|"annotated as"| node_annotate
node_annotate -->|"uses platform"| node_roboflow
node_annotate -->|"exports labels"| node_labels
node_labels -->|"trains on"| node_train
node_train -->|"validates"| node_evaluate
node_train -->|"produces weights"| node_weights
node_weights -->|"loads model"| node_infer
node_tiles -->|"analyzed tilewise"| node_infer
node_infer -->|"filters detections"| node_filter
node_filter -->|"exports centroids"| node_geojson
node_geojson -->|"opened in"| node_gis
node_analyst -.->|"may run"| node_finetune
node_weights -.->|"continues training"| node_finetune
node_analyst -.->|"may run"| node_compare
node_labels -.->|"compared on"| node_compare

click node_prepare "https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/blob/main/01_data_preparation.ipynb"
click node_tiles "https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/tree/main/raster_data/tiles"
click node_annotate "https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/tree/main/Oilpalm-Tree-Detection-2"
click node_labels "https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/tree/main/Oilpalm-Tree-Detection-2"
click node_train "https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/blob/main/02_model_train_eval.ipynb"
click node_evaluate "https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/blob/main/02_model_train_eval.ipynb"
click node_weights "https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/tree/main/Model"
click node_finetune "https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/blob/main/04_fine_tune.ipynb"
click node_infer "https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/blob/main/03_inference_model.ipynb"
click node_filter "https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/blob/main/03_inference_model.ipynb"
click node_geojson "https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/tree/main/Output"

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_tiles,node_analyst,node_gis toneBlue
class node_annotate,node_labels toneAmber
class node_train,node_evaluate,node_weights,node_finetune,node_compare toneMint
class node_infer,node_filter,node_geojson toneRose
class node_rasters,node_roboflow toneIndigo
```

## Components

### Raster Preparation

- [Convert and tile](https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/blob/main/01_data_preparation.ipynb): `01_data_preparation.ipynb`
- [Raster tiles](https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/tree/main/raster_data/tiles): `raster_data/tiles`

### Annotation Data

- [Tile annotation](https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/tree/main/Oilpalm-Tree-Detection-2): `Oilpalm-Tree-Detection-2`
- [Labeled splits](https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/tree/main/Oilpalm-Tree-Detection-2): `Oilpalm-Tree-Detection-2`

### Modeling

- [YOLOv12 training](https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/blob/main/02_model_train_eval.ipynb): `02_model_train_eval.ipynb`
- [Model evaluation](https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/blob/main/02_model_train_eval.ipynb): `02_model_train_eval.ipynb`
- [Trained weights](https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/tree/main/Model): `Model`
- [Optional fine-tuning](https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/blob/main/04_fine_tune.ipynb): `04_fine_tune.ipynb`
- **YOLOv26 comparison**

### Geospatial Inference

- [Tile inference](https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/blob/main/03_inference_model.ipynb): `03_inference_model.ipynb`
- [Proximity filter](https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/blob/main/03_inference_model.ipynb): `03_inference_model.ipynb`
- [Centroid GeoJSON](https://github.com/mwahyur46/oilpalm-tree-detection-yolov26/tree/main/Output): `Output`

### Other components

- **Pipeline user**
- **Source rasters**
- **GIS user**
- **Roboflow**

## Connections

- Pipeline user → Convert and tile: runs (evidence: `README.md`)
- Source rasters → Convert and tile: provides imagery (evidence: `README.md`)
- Convert and tile → Raster tiles: writes tiles (evidence: `README.md`)
- Raster tiles → Tile annotation: annotated as (evidence: `README.md`)
- Tile annotation → Roboflow: uses platform (evidence: `README.md`)
- Tile annotation → Labeled splits: exports labels (evidence: `README.md`)
- Labeled splits → YOLOv12 training: trains on (evidence: `README.md`)
- YOLOv12 training → Model evaluation: validates (evidence: `README.md`)
- YOLOv12 training → Trained weights: produces weights (evidence: `README.md`)
- Trained weights → Tile inference: loads model (evidence: `README.md`)
- Raster tiles → Tile inference: analyzed tilewise (evidence: `README.md`)
- Tile inference → Proximity filter: filters detections (evidence: `README.md`)
- Proximity filter → Centroid GeoJSON: exports centroids (evidence: `README.md`)
- Centroid GeoJSON → GIS user: opened in (evidence: `README.md`)
- Pipeline user → Optional fine-tuning: may run (evidence: `README.md`)
- Trained weights → Optional fine-tuning: continues training (evidence: `README.md`)
- Pipeline user → YOLOv26 comparison: may run (evidence: `README.md`)
- Labeled splits → YOLOv26 comparison: compared on (evidence: `README.md`)
