# yt7589/yolov11 architecture

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

## Overview

Ultralytics is a Python computer-vision toolkit centered on YOLO and related model families. The main user workflow is to load a model, then train, validate, predict, inspect results, or export it; dataset preparation and augmentation support training, while backend and neural-network modules provide inference execution. The README also documents tracking and multiple vision tasks. Several engine and model modules are listed but were not sampled, so their internal call relationships are shown only where documented or otherwise evidenced.

Main entry points: [`ultralytics/engine/model.py`](https://github.com/yt7589/yolov11/blob/main/ultralytics/engine/model.py) (Model interface), [`ultralytics/engine/predictor.py`](https://github.com/yt7589/yolov11/blob/main/ultralytics/engine/predictor.py) (Prediction), [`ultralytics/data/dataset.py`](https://github.com/yt7589/yolov11/blob/main/ultralytics/data/dataset.py) (Dataset loading), [`ultralytics/nn/tasks.py`](https://github.com/yt7589/yolov11/blob/main/ultralytics/nn/tasks.py) (Model construction)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["Model API"]
  node_model_api["Model interface<br/>[model.py]"]
end

subgraph group_data["Data pipeline"]
  node_dataset["Dataset loading<br/>[dataset.py]"]
  node_data_utils["Dataset validation<br/>[utils.py]"]
  node_augmentation["Augmentation<br/>[augment.py]"]
  node_loaders["Image and video input<br/>[loaders.py]"]
end

subgraph group_vision["Vision models"]
  node_backend["Backend execution<br/>[autobackend.py]"]
  node_tasks["Model construction<br/>[tasks.py]"]
  node_nn_modules["Neural network layers"]
  node_yolo_tasks["YOLO task models"]
  node_special_models["SAM and model variants"]
  node_losses["Training losses<br/>[loss.py]"]
end

subgraph group_runtime["Execution and results"]
  node_trainer["Training<br/>[trainer.py]"]
  node_validator["Validation<br/>[validator.py]"]
  node_predictor["Prediction<br/>[predictor.py]"]
  node_results["Result objects<br/>[results.py]"]
  node_exporter["Model export<br/>[exporter.py]"]
  node_metrics["Evaluation metrics<br/>[metrics.py]"]
  node_plotting["Visualization<br/>[plotting.py]"]
end

subgraph group_extensions["Product extensions"]
  node_trackers["Object tracking<br/>[track.py]"]
  node_solutions["Vision solutions"]
  node_explorer["Dataset explorer<br/>[explorer.py]"]
  node_hub["Ultralytics HUB"]
end

node_user(("Python or CLI user"))

node_user -->|"uses"| node_model_api
node_model_api -->|"trains"| node_trainer
node_model_api -->|"validates"| node_validator
node_model_api -->|"predicts with"| node_predictor
node_model_api -->|"exports through"| node_exporter
node_trainer -.->|"loads data"| node_dataset
node_dataset -->|"applies"| node_augmentation
node_dataset -->|"uses"| node_data_utils
node_predictor -.->|"reads inputs"| node_loaders
node_predictor -.->|"runs inference"| node_backend
node_backend -->|"loads models"| node_tasks
node_tasks -->|"builds from"| node_nn_modules
node_tasks -->|"uses"| node_losses
node_trainer -.->|"optimizes"| node_losses
node_validator -.->|"computes"| node_metrics
node_predictor -->|"returns"| node_results
node_results -->|"renders"| node_plotting
node_model_api -.->|"selects task"| node_yolo_tasks
node_model_api -->|"loads variants"| node_special_models
node_predictor -.->|"supports tracking"| node_trackers
node_user -.->|"uses"| node_solutions
node_user -.->|"explores data"| node_explorer
node_user -.->|"connects"| node_hub

click node_model_api "https://github.com/yt7589/yolov11/blob/main/ultralytics/engine/model.py"
click node_dataset "https://github.com/yt7589/yolov11/blob/main/ultralytics/data/dataset.py"
click node_data_utils "https://github.com/yt7589/yolov11/blob/main/ultralytics/data/utils.py"
click node_augmentation "https://github.com/yt7589/yolov11/blob/main/ultralytics/data/augment.py"
click node_loaders "https://github.com/yt7589/yolov11/blob/main/ultralytics/data/loaders.py"
click node_trainer "https://github.com/yt7589/yolov11/blob/main/ultralytics/engine/trainer.py"
click node_validator "https://github.com/yt7589/yolov11/blob/main/ultralytics/engine/validator.py"
click node_predictor "https://github.com/yt7589/yolov11/blob/main/ultralytics/engine/predictor.py"
click node_results "https://github.com/yt7589/yolov11/blob/main/ultralytics/engine/results.py"
click node_exporter "https://github.com/yt7589/yolov11/blob/main/ultralytics/engine/exporter.py"
click node_backend "https://github.com/yt7589/yolov11/blob/main/ultralytics/nn/autobackend.py"
click node_tasks "https://github.com/yt7589/yolov11/blob/main/ultralytics/nn/tasks.py"
click node_nn_modules "https://github.com/yt7589/yolov11/tree/main/ultralytics/nn/modules"
click node_yolo_tasks "https://github.com/yt7589/yolov11/tree/main/ultralytics/models/yolo"
click node_special_models "https://github.com/yt7589/yolov11/tree/main/ultralytics/models"
click node_losses "https://github.com/yt7589/yolov11/blob/main/ultralytics/utils/loss.py"
click node_metrics "https://github.com/yt7589/yolov11/blob/main/ultralytics/utils/metrics.py"
click node_trackers "https://github.com/yt7589/yolov11/blob/main/ultralytics/trackers/track.py"
click node_solutions "https://github.com/yt7589/yolov11/tree/main/ultralytics/solutions"
click node_explorer "https://github.com/yt7589/yolov11/blob/main/ultralytics/data/explorer/explorer.py"
click node_hub "https://github.com/yt7589/yolov11/tree/main/ultralytics/hub"
click node_plotting "https://github.com/yt7589/yolov11/blob/main/ultralytics/utils/plotting.py"

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_model_api,node_user toneBlue
class node_dataset,node_data_utils,node_augmentation,node_loaders toneAmber
class node_backend,node_tasks,node_nn_modules,node_yolo_tasks,node_special_models,node_losses toneMint
class node_trainer,node_validator,node_predictor,node_results,node_exporter,node_metrics,node_plotting toneRose
class node_trackers,node_solutions,node_explorer,node_hub toneIndigo
```

## Components

### Model API

- [Model interface](https://github.com/yt7589/yolov11/blob/main/ultralytics/engine/model.py): `ultralytics/engine/model.py`

### Data pipeline

- [Dataset loading](https://github.com/yt7589/yolov11/blob/main/ultralytics/data/dataset.py): `ultralytics/data/dataset.py`
- [Dataset validation](https://github.com/yt7589/yolov11/blob/main/ultralytics/data/utils.py): `ultralytics/data/utils.py`
- [Augmentation](https://github.com/yt7589/yolov11/blob/main/ultralytics/data/augment.py): `ultralytics/data/augment.py`
- [Image and video input](https://github.com/yt7589/yolov11/blob/main/ultralytics/data/loaders.py): `ultralytics/data/loaders.py`

### Vision models

- [Backend execution](https://github.com/yt7589/yolov11/blob/main/ultralytics/nn/autobackend.py): `ultralytics/nn/autobackend.py`
- [Model construction](https://github.com/yt7589/yolov11/blob/main/ultralytics/nn/tasks.py): `ultralytics/nn/tasks.py`
- [Neural network layers](https://github.com/yt7589/yolov11/tree/main/ultralytics/nn/modules): `ultralytics/nn/modules`
- [YOLO task models](https://github.com/yt7589/yolov11/tree/main/ultralytics/models/yolo): `ultralytics/models/yolo`
- [SAM and model variants](https://github.com/yt7589/yolov11/tree/main/ultralytics/models): `ultralytics/models`
- [Training losses](https://github.com/yt7589/yolov11/blob/main/ultralytics/utils/loss.py): `ultralytics/utils/loss.py`

### Execution and results

- [Training](https://github.com/yt7589/yolov11/blob/main/ultralytics/engine/trainer.py): `ultralytics/engine/trainer.py`
- [Validation](https://github.com/yt7589/yolov11/blob/main/ultralytics/engine/validator.py): `ultralytics/engine/validator.py`
- [Prediction](https://github.com/yt7589/yolov11/blob/main/ultralytics/engine/predictor.py): `ultralytics/engine/predictor.py`
- [Result objects](https://github.com/yt7589/yolov11/blob/main/ultralytics/engine/results.py): `ultralytics/engine/results.py`
- [Model export](https://github.com/yt7589/yolov11/blob/main/ultralytics/engine/exporter.py): `ultralytics/engine/exporter.py`
- [Evaluation metrics](https://github.com/yt7589/yolov11/blob/main/ultralytics/utils/metrics.py): `ultralytics/utils/metrics.py`
- [Visualization](https://github.com/yt7589/yolov11/blob/main/ultralytics/utils/plotting.py): `ultralytics/utils/plotting.py`

### Product extensions

- [Object tracking](https://github.com/yt7589/yolov11/blob/main/ultralytics/trackers/track.py): `ultralytics/trackers/track.py`
- [Vision solutions](https://github.com/yt7589/yolov11/tree/main/ultralytics/solutions): `ultralytics/solutions`
- [Dataset explorer](https://github.com/yt7589/yolov11/blob/main/ultralytics/data/explorer/explorer.py): `ultralytics/data/explorer/explorer.py`
- [Ultralytics HUB](https://github.com/yt7589/yolov11/tree/main/ultralytics/hub): `ultralytics/hub`

### Other components

- **Python or CLI user**

## Connections

- Python or CLI user → Model interface: uses (evidence: `README.md`)
- Model interface → Training: trains (evidence: `README.md`)
- Model interface → Validation: validates (evidence: `README.md`)
- Model interface → Prediction: predicts with (evidence: `README.md`)
- Model interface → Model export: exports through (evidence: `README.md`)
- Training → Dataset loading: loads data
- Dataset loading → Augmentation: applies (evidence: `ultralytics/data/dataset.py`)
- Dataset loading → Dataset validation: uses (evidence: `ultralytics/data/dataset.py`)
- Prediction → Image and video input: reads inputs
- Prediction → Backend execution: runs inference
- Backend execution → Model construction: loads models (evidence: `ultralytics/nn/autobackend.py`)
- Model construction → Neural network layers: builds from (evidence: `ultralytics/nn/tasks.py`)
- Model construction → Training losses: uses (evidence: `ultralytics/nn/tasks.py`)
- Training → Training losses: optimizes
- Validation → Evaluation metrics: computes
- Prediction → Result objects: returns (evidence: `ultralytics/models/sam/predict.py`)
- Result objects → Visualization: renders (evidence: `ultralytics/engine/results.py`)
- Model interface → YOLO task models: selects task
- Model interface → SAM and model variants: loads variants
- Prediction → Object tracking: supports tracking
- Python or CLI user → Vision solutions: uses
- Python or CLI user → Dataset explorer: explores data
- Python or CLI user → Ultralytics HUB: connects
