torchgeo.trainers#
TorchGeo provides LightningModules for a number of common tasks in geospatial and geotemporal deep learning.
Supervised Learning#
Supervised learning tasks have both inputs and labeled outputs.
Input |
Output |
Task |
|---|---|---|
\(\mathbb{R}^{T \times C}\) |
\(\mathbb{R}^{T \times C}\) |
|
\(\mathbb{R}^{C \times H \times W}\) |
\(\mathbb{N}\) or \(\mathbb{N}^C\) |
|
\(\mathbb{R}^{C \times H \times W}\) |
\(\mathbb{R}\) or \(\mathbb{R}^C\) |
|
\(\mathbb{R}^{C \times H \times W}\) |
\(\mathbb{N}^{H \times W}\) |
|
\(\mathbb{R}^{C \times H \times W}\) |
\(\mathbb{R}^{H \times W}\) |
|
\(\mathbb{R}^{C \times H \times W}\) |
\(\mathbb{R}^{O \times 4}\) |
|
\(\mathbb{R}^{C \times H \times W}\) |
\(\mathbb{N}^{O \times H \times W}\) |
|
\(\mathbb{R}^{2 \times C \times H \times W}\) |
\(\mathbb{N}^{H \times W}\) |
|
\(\mathbb{R}^{T \times C \times H \times W}\) |
\(\mathbb{N}^{H \times W}\) |
Self-Supervised Learning#
Self-supervised learning (SSL) tasks have inputs and create their own labeled outputs.
Input |
Task |
|---|---|
\(\mathbb{R}^{C \times H \times W}\) or \(\mathbb{R}^{T \times C \times H \times W}\) |
|
\(\mathbb{R}^{C \times H \times W}\) |
|
\(\mathbb{R}^{C \times H \times W}\) or \(\mathbb{R}^{T \times C \times H \times W}\) |
|
\(\mathbb{R}^{C \times H \times W}\) or \(\mathbb{R}^{T \times C \times H \times W}\) |
Non-Learning Tasks#
Tasks that do not relate to learning.
Input |
Task |
|---|---|
\(\mathbb{R}^{C \times H \times W}\) |
Base Classes#
Abstract base classes that all other tasks inherit from.
Mixins#
Mixins that support code reuse across multiple tasks.
Output |
Mixin |
|---|---|
\(\mathbb{N}\) or \(\mathbb{N}^C\) or \(\mathbb{N}^{H \times W}\) |
|
\(\mathbb{R}\) or \(\mathbb{R}^C\) or \(\mathbb{R}^{T \times C}\) or \(\mathbb{R}^{H \times W}\) |