Skip to content
This package was removed from CRAN on 2026-04-28. Its history is shown below.
Reason: issues were not corrected in time
Details below reflect version 0.3.1, its last release before removal.

geodl

0.3.1Package record

Geospatial Semantic Segmentation with Torch and Terra

0packages depend
1.4Kdownloads / year
–test coverage
–flavors OK

Overview

About

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'.

Install

Health

CRAN checks

CRAN check results are not tracked yet.

Status changes
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.3.1
READMEYes · 769 wordsVignettesNoNEWSYes · 100% structured · does not mention 0.3.1Citation fileNoWebsiteYes
Help pages
38
Examples that run
7%2 run in a plain check (1 of them under a condition) · 5 only when donttest examples are enabled (R CMD check --as-cran) · 20 never run
Exported functions with examples
71%
Documented parameters
99%
Return-value docs
84%
Help pages citing references
0%

Downloads

1.4K
CRAN downloads in the past year
Rank #25,730 · ~4/day · ~118/mo
Daily download trend is not available in this view yet.
Also on93 r2u

Dependencies

Declared dependencies
14 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.2
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none
Reverse dependencies
0direct
–indirect (not tracked)

Nothing depends on this yet.

Code & Tests

People & History

People (4)
Author, Maintainer since 0.2.0 (2024), Copyright holder
Releases (3)
Submitted 0.4.0, in newbies since 2026-10-21 05:36 UTC, as of the 2026-10-24 18:29 UTC queue snapshot. See the queue →

Pick two releases to compare their code metrics.

  • archivedRemoved from CRAN
    2026-04-28
    issues were not corrected in time
  • R
    R 4.6.0 released · 2026-04-24
  • 0.3.1
    record
    2025-12-02 · diff ↗
  • 0.3.0
    record
    2025-11-12 · diff ↗ ·
    removed 1 export
    makeTerrainDerivatives
    added 16 exports
    callback_save_model_state_dict, checkDynamicChips, countParams, defineDynmamicSegDataSet, defineTerrainSeg, defineUNet3p, makeAspect, makeCrv, makeDynamicChipsSF, makeHillshade, makeSlope, makeTPI, makeTRI, makeTerrainVisTerra, makeTerrainVisTorch, saveDynamicChips
  • R
    R 4.5.0 released · 2025-04-11
  • 0.2.0
    record
    2024-08-20
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2024-08-20
Total releases
3 / 2 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 4.2
Download size
94 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("geodl")
Maxwell, A., Farhadpour, S., Das, S., & Yang, Y. (n.d.). geodl: Geospatial Semantic Segmentation with Torch and Terra (Version 0.3.1) [Computer software]. Retrieved October 25, 2026, from https://CRAN.R-project.org/package=geodl

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for geodl version 0.3.1 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy