Skip to content

About

Interface for predicting and mapping habitat (substrates) from any side-scan sonar mosaic.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

80 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RockMapper logo RockMapper

PyPI - Version GitHub last commit GitHub commit activity GitHub

Interface for predicting and mapping benthic habitat (substrates) from any side-scan sonar mosaic.

Overview

RockMapper is an open-source Python interface for automatically predicting and mapping rock from any side-scan sonar mosaic(s). RockMapper leverages SegFormer pre-trained models fine-tuned with Segmentation Gym to automatically classify "rocky" substrate- defined as any hard particle greater than 2 mm in size. RockMapper uses the Udden-Wentworth grain size scale when classifying substrate into four classes: other (fines <2mm), gravel (2mm - 64mm), boulder/cobble (>64mm ), and bedrock (unfractured hard substrates) (Wentworth 1922).

Published Documentation

Journal Article

Wolfenkoehler, W. A., Bodine, C. S., & Long, J. M. (forthcoming). Evaluating RockMapper: A software to automatically map aquatic substrate from sonar images.

In this study RockMapper was evaluated by comparing output maps to those made by manual methods, allowing future substrate delineators to better understand the potential strengths or limitations of each approach. RockMapper mapping resulted in similar accuracy to manual methods, which ranged between 61-98%, while also saving ~ 11 minutes per hectare of manual delineation time. Additionally, RockMapper appeared to generalize well to new rivers, indicating reproducibility to unseen datasets.

Model Training Data

Wolfenkoehler, W., and Long, J., 2026, Substrate classifications of three rivers in eastern Oklahoma: U.S. Geological Survey data release, https://doi.org/10.5066/P1CZGXSF

Installation

  1. Install Miniforge.
  2. Open the Miniforge prompt.
  3. Install PINGInstaller:
    pip install --force-reinstall pinginstaller
    
  4. Install RockMapper:
    python -m pinginstaller rockmapper
    

Usage

  1. Launch RockMapper: RockMapper can be launched in several ways.

    a. PINGWizard via Desktop Shorcut [Recommended first] - Double click PINGWizard.bat on your desktop (or where you saved it).

    b. PINGWizard via Miniforge prompt [Recommended second]:

    conda run -n pingwizard python -m pingwizard
    

    Then select RockMapper from the Utility drop down and click RockMapper button.

    OR

    c. Bypass PINGWizard [Recommended last]:

    conda run -n rockmapper_torch python -m rockmapper
    
  2. Choose the folder containing the input mosaics and an existing output folder. Mosaics matching the specified extension are found recursively.

  3. Enter a project name, choose a model and output formats, and adjust the processing parameters. The EPSG code should identify a projected coordinate system in metres. Models are downloaded automatically if needed.

  4. Optionally click Save Defaults to reuse the current settings the next time you open RockMapper. The settings are stored in ~/.rockmapper/user_params.json; saving does not start processing or validate the input files.

  5. Click Run. Progress and detailed errors are printed in the launching terminal. The window reports completion or failure.

The processing workflow deletes an existing project folder and all of its contents before starting. The GUI asks for confirmation first; choose a different project name to keep an existing project. Input and project folders must not contain one another.

Before saving your own defaults, the initial folder paths and processing parameters reflect the current development configuration; change them for your data before running. If saved defaults cannot be loaded, RockMapper reports the error and uses the built-in defaults.

The GPU environment is named rockmapper_torch_gpu. Older GPU configuration files named it carpscouter-gpu; the installer creates the corrected environment instead of changing or deleting that older environment. The GPU environment pins the PyTorch CUDA 12.6 wheels: the CUDA 13 build was observed to crash during GPU initialization in WSL. Both pip indexes apply to all pip requirements, so the CUDA index alone does not prevent pip from selecting a newer PyTorch build from PyPI.

About

Interface for predicting and mapping habitat (substrates) from any side-scan sonar mosaic.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages