Interface for predicting and mapping benthic habitat (substrates) from any side-scan sonar mosaic.
RockMapper is an open-source Python interface for automatically predicting and mapping rock from any side-scan sonar mosaic(s). RockMapper leverages fine-tuned SegFormer pre-trained models 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).
Wolfenkoehler, W. A., Bodine, C. S., & Long, J. M. (forthcoming). Evaluating RockMapper: A software to automatically map aquatic substrate from sonar images.
Accuracy and performance details forthcoming.
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
Forthcoming
- Install Miniforge. Additional information available on the PINGMapper Website.
- Open the Miniforge prompt. More Info
- Install
PINGInstallerwith the following command:pip install --no-cache-dir pinginstaller - Install
RockMapperwith the following command:python -m pinginstaller rockmapper
-
Launch RockMapper: RockMapper can be launched in several ways.
a. PINGWizard via Desktop Shorcut [Recommended] - Double click
PINGWizard.baton your desktop (or where you saved it).b. PINGWizard via Miniforge prompt [Recommended second]:
conda run -n pingwizard python -m pingwizardThen select RockMapper from the Utility drop down and click
RockMapperbutton.OR
c. Bypass PINGWizard [Recommended last]:
conda run -n rockmapper_torch python -m rockmapper -
Choose the folder containing the input mosaics and an existing output folder. Mosaics matching the specified extension are found recursively.
-
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.
-
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. -
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.
