geodl provides tools for geospatial semantic segmentation using convolutional neural network-based deep learning, built on torch and terra. It includes several configurable UNet-family model architectures, utilities for preparing and augmenting image chips, loss functions and training metrics for use with luz, and functions for generating spatial predictions and assessing accuracy. Models can be trained using a CUDA-enabled GPU and do not require a Python environment.
Full details are described in:
Maxwell, A.E., Farhadpour, S., Das, S. and Yang, Y., 2024. geodl: An R package for geospatial deep learning semantic segmentation using torch and terra. PLoS One, 19(12), p.e0315127. https://doi.org/10.1371/journal.pone.0315127
Installation
You can install the development version of geodl from GitHub with:
# install.packages("devtools")
devtools::install_github("maxwell-geospatial/geodl")Documentation
Full documentation, including a function reference, is available at the pkgdown website.
Chapters 22, 23, 24, and 25 of the free and openly available online text Geospatial Supervised Learning using R provide detailed workflows and explanations.
