The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

geodl: Geospatial Semantic Segmentation with Torch and Terra

Provides tools for semantic segmentation of geospatial data using convolutional neural network-based deep learning. Utility functions allow for creating masks, image chips, data frames listing image chips in a directory, and DataSets for use within DataLoaders. Additional functions are provided to serve as checks during the data preparation and training process. A UNet architecture can be defined with 4 blocks in the encoder, a bottleneck block, and 4 blocks in the decoder. The UNet can accept a variable number of input channels, and the user can define the number of feature maps produced in each encoder and decoder block and the bottleneck. Users can also choose to (1) replace all rectified linear unit (ReLU) activation functions with leaky ReLU or swish, (2) implement attention gates along the skip connections, (3) implement squeeze and excitation modules within the encoder blocks, (4) add residual connections within all blocks, (5) replace the bottleneck with a modified atrous spatial pyramid pooling (ASPP) module, and/or (6) implement deep supervision using predictions generated at each stage in the decoder. A unified focal loss framework is implemented after Yeung et al. (2022) <doi:10.1016/j.compmedimag.2021.102026>. We have also implemented assessment metrics using the 'luz' package including F1-score, recall, and precision. Trained models can be used to predict to spatial data without the need to generate chips from larger spatial extents. Functions are available for performing accuracy assessment. The package relies on 'torch' for implementing deep learning, which does not require the installation of a 'Python' environment. Raster geospatial data are handled with 'terra'. Models can be trained using a Compute Unified Device Architecture (CUDA)-enabled graphics processing unit (GPU); however, multi-GPU training is not supported by 'torch' in 'R'.

Version: 0.2.0
Depends: R (≥ 4.1)
Imports: torch (≥ 0.11.0), torchvision (≥ 0.5.1), dplyr (≥ 1.1.3), terra (≥ 1.7.55), luz (≥ 0.4.0), MultiscaleDTM (≥ 0.8.2), psych (≥ 2.3.3), coro (≥ 1.0.3), R6 (≥ 2.5.1), readr (≥ 2.1.3), rlang (≥ 1.1.1)
Suggests: knitr, rmarkdown
Published: 2024-08-20
DOI: 10.32614/CRAN.package.geodl
Author: Aaron Maxwell [aut, cre, cph], Sarah Farhadpour [aut], Srinjoy Das [aut], Yalin Yang [aut]
Maintainer: Aaron Maxwell <Aaron.Maxwell at mail.wvu.edu>
BugReports: https://github.com/maxwell-geospatial/geodl/issues
License: GPL (≥ 3)
URL: https://github.com/maxwell-geospatial/geodl, https://doi.org/10.31223/X53M6T, https://www.wvview.org/geodl/index.html
NeedsCompilation: no
Materials: README NEWS
CRAN checks: geodl results

Documentation:

Reference manual: geodl.pdf
Vignettes: createDataSetDataLoader (source, R code)
createMasks (source, R code)
lcaiDemo (source, R code)
makeChips (source, R code)
metricsDemo (source, R code)
modelAssessment (source, R code)
spatialPredictionDemo (source, R code)
terrainDerDemo (source, R code)
topoDLDemo (source, R code)
unifiedFocalLossDemo (source, R code)

Downloads:

Package source: geodl_0.2.0.tar.gz
Windows binaries: r-devel: geodl_0.2.0.zip, r-release: geodl_0.2.0.zip, r-oldrel: geodl_0.2.0.zip
macOS binaries: r-release (arm64): geodl_0.2.0.tgz, r-oldrel (arm64): geodl_0.2.0.tgz, r-release (x86_64): geodl_0.2.0.tgz, r-oldrel (x86_64): geodl_0.2.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=geodl to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.