Pretrained weights for the five models compared in Hsu & Moortgat (2026),
From Local Training to Large-Scale Mapping: A Comparative Assessment of
Machine Learning and Deep Learning for Transferable Satellite-Derived
Bathymetry, Remote Sensing 18(11): 1768,
10.3390/rs18111768. Trained and
evaluated using the DL_bathy pipeline:
github.com/buckai-observatory/DL_bathy.
./
├── best_model.pth ConvNeXt-Large, best-val checkpoint
├── deeplabv3_bathy_final.pth ConvNeXt-Large, final-epoch checkpoint
├── metadata.json ConvNeXt-Large training run config + metrics
├── resnet101/
│ ├── best_model.pth
│ ├── deeplabv3_bathy_final.pth
│ └── metadata.json
├── resnet50/
│ ├── best_model.pth
│ ├── deeplabv3_bathy_final.pth default for inference.py
│ └── metadata.json
├── efficientnet_b4/
│ ├── best_model.pth
│ ├── deeplabv3_bathy_final.pth
│ └── metadata.json
└── random_forest/
└── trained_model_20260126_173237.joblib
For each DeepLabV3+ backbone, both the best-validation-metric checkpoint
(best_model.pth) and the final-epoch checkpoint
(deeplabv3_bathy_final.pth) are included, alongside the training run's
metadata.json (configuration + metrics, written by
step2_train_test.py). All four were trained with the SWF (Smooth
Weight Function) depth-weighted loss (loss_type: "swf" in each
metadata.json).
Load a .pth checkpoint with segmentation_models_pytorch via the
DL_bathy repo's inference.py (load_model(filename=..., encoder_name=...)); load the .joblib file with joblib.load() into
scikit-learn.
Random Forest baseline: random_forest/trained_model_20260126_173237.joblib
is the Random Forest baseline of Hsu & Moortgat (2026). It is provided for
reference only and is not supported by DL_bathy, which has no code to
train or run it.
smp.DeepLabV3Plus with a 12-band input head, single-channel regression output, and an ImageNet-pretrained encoderresnet50 (ResNet-50). Alternate encoders trained by the same pipeline: tu-convnext_large (ConvNeXt-Large, timm backend; the default before v0.2.0), resnet101, efficientnet-b4. The default follows Hsu & Moortgat (2026): ResNet-50 had the lowest within-region test RMSE (Table 2) and is close to the best in cross-regional transfer (Table 4); ConvNeXt-Large (best at Cartier Reef) and ResNet-101 (best at Ashmore Reef) remain available.Ground truth: airborne LiDAR bathymetry (see Hsu & Moortgat, 2026 for the full site list and processing chain).
Public reference subset: an open subset of the ground-truth data
is shipped in Ground_Truth.zip in the DL_bathy
repository for reproducibility and demo purposes. The full training
dataset includes commercially licensed LiDAR that cannot be
redistributed; this is documented in the repo's Data availability
section.
Sentinel-2 imagery: L2A reflectance bands 1–12 (B01–B12). Cloud and shadow pixels are excluded via the SCL band during training.
How the released weights' training data was made: the Sentinel-2
scenes were downloaded from Google Earth Engine, and the labels were
tide-corrected with the DTU23 tide model (January 2026). The current
pipeline (sdb split) downloads scenes with geoai-datacubes (since
August 2026) and corrects tides with pyTMD/EOT20 (since October 2026);
retraining with it will not reproduce the released weights exactly.
Patches used by the released checkpoints:
Values below are read from each released checkpoint's metadata.json
on the Hugging Face Hub and from the training log of the run that produced
it (the released deeplabv3_bathy_final.pth files have the same SHA-256 as
the files those runs saved). All four deep-learning checkpoints share the
same settings apart from the encoder; they were trained in January 2026.
Encoder backbone: resnet50 (default), resnet101, efficientnet-b4 or tu-convnext_large, one checkpoint each
Input channels: 12 (Sentinel-2 bands B01–B12)
Input normalisation: log(band / 10000 + 1e-6) of the L2A digital numbers
(Logcube: true, band_normalization: 10000, Epsilon: 1e-6; each
checkpoint's metadata.json records scaling_method: Log_band), with
invalid values set to 0. inference.predict_depth applies this to raw
bands by default.
Output: single-channel regression, no activation (raw depth in metres)
Depth range: trained on 0–20 m. Each checkpoint's metadata.json records
depth_type: "deep" because it was trained before issue #11 was fixed,
when "deep" kept depths shallower than depth_threshold. With the
current code, the same setting is depth_type: "shallow" (the default).
Tide correction: the training labels were made with DTU23 tide heights
added to the LiDAR depths, the sign later found to be wrong (issue #47;
sdb split subtracts them from v0.2.0). At the demo site the old sign shifts
predictions by about 0.1 m, because the mean tide at the Sentinel-2 overpass
time there is close to zero.
Loss: SWF (smooth weight function, depth-weighted squared error), per-pixel
weight 1 + beta * exp(-|z| / Z0) with SWF_beta = 5.0, SWF_Z0 = 10.0
(loss_type: swf)
Optimiser: AdamW, weight-decay 1e-4, initial LR 1e-4
Gradient clipping: max norm 5.0
Patch filtering: patches with < 10 % valid pixels are skipped
(min_valid_ratio: 0.1)
Scheduler: ReduceLROnPlateau (factor 0.5, patience 5)
Batch size: 16
Epochs: up to 1000 with early stopping after 10 epochs without validation improvement; epochs actually run, best validation loss (SWF units), GPU and total run time per checkpoint:
| Encoder | Epochs run | Best validation loss | GPU | Run time |
|---|---|---|---|---|
tu-convnext_large |
23 | 4.50 | NVIDIA L40S | 20 h 45 min |
resnet101 |
33 | 3.23 | NVIDIA A40 | 25 h 46 min |
resnet50 (default) |
40 | 3.60 | NVIDIA A40 | 26 h 33 min |
efficientnet-b4 |
23 | 4.97 | NVIDIA L40S | 20 h 10 min |
Hardware: one GPU per run (gpu_count_used: 1), 16 data-loader workers
Run time is the logged wall-clock time of the whole run: data loading, training, and inference on the 144 test patches.
The study-wide evaluation of these models, including transfer to other sites, is reported in Hsu & Moortgat (2026). TODO (Amy): optionally copy the paper's held-out test-set metrics here.
Public demo scene. The table below scores all four released checkpoints
against the public ground truth shipped with the repository, so anyone can
reproduce it with notebooks/dl_bathy_demo.ipynb or the smoke test:
geoai-datacubes over the demo AOI [145.14, -14.56, 145.66, -14.26]
(Great Barrier Reef), search window 2020-06-01 – 2020-09-30, ≤ 20 % cloud.Great_Barrier_Reef_A_2020_30m_MSL_cog_depth_0_to_-30_T55LCE_test.tif
from Ground_Truth.zip, resampled to the prediction grid.| Encoder | RMSE (m) | MAE (m) | Bias (m) | CPU inference time |
|---|---|---|---|---|
tu-convnext_large |
3.01 | 1.86 | +1.09 | 542 s |
resnet50 (default) |
2.49 | 1.74 | +1.03 | 77 s |
resnet101 |
2.62 | 1.75 | +0.98 | 148 s |
efficientnet-b4 |
4.07 | 2.67 | +2.26 | 219 s |
Measured on 12 November 2026 with DL_bathy commit 2b0926a on an Apple
silicon Mac (CPU only; inference time covers the whole scene). Including
ground truth deeper than 20 m (0–30 m, n = 756,444) raises RMSE to 13.7–15.1 m
for every encoder, because the models were not trained beyond 20 m (see
Out-of-scope). efficientnet-b4 also predicts some pixels above sea level
(up to +7.5 m).
Minimal example (install with
pip install "dl-bathy[inference,fetch] @ git+https://github.com/buckai-observatory/DL_bathy",
or pip install -e ".[inference,fetch]" in a clone of the repository):
from inference import predict_from_geoai_datacubes
# Predict bathymetry over a small AOI in the Great Barrier Reef (the same
# region the public Ground_Truth.zip covers).
depths, meta = predict_from_geoai_datacubes(
aoi=[145.14, -14.56, 145.66, -14.26],
time_range=("2020-06-01", "2020-09-30"),
max_cloud_coverage=0.20,
)
print(f"Predicted depth map shape: {depths.shape}, dtype: {depths.dtype}")
For finer-grained control, load the model once and reuse it across many AOIs:
from inference import load_model, predict_depth
import rasterio
model = load_model()
with rasterio.open("my_s2_scene.tif") as src:
s2_bands = src.read()[:12].astype("float32")
depths = predict_depth(model, s2_bands)
To use another released checkpoint, pass its file and encoder, e.g.
load_model(filename="resnet101/deeplabv3_bathy_final.pth", encoder_name="resnet101");
the README lists all four.
See notebooks/dl_bathy_demo.ipynb in the repository for a Colab-ready
end-to-end walkthrough on the public GBR subset.
If you use these weights, please cite:
CITATION.cff in the DL_bathy repository.TODO — one bullet per HF Hub release, with training config deltas and new evaluation numbers.
v0.1.0 — first public release, reproducing the setup used in
Hsu & Moortgat (2026).deeplabv3_bathy_final.pth 758 MiBbest_model.pth 758 MiBresnet101/deeplabv3_bathy_final.pth 175 MiBresnet101/best_model.pth 175 MiBresnet50/deeplabv3_bathy_final.pth 102 MiBresnet50/best_model.pth 102 MiBefficientnet_b4/deeplabv3_bathy_final.pth 72 MiBefficientnet_b4/best_model.pth 72 MiB