Downloads · 30 days
0
yyhw/terrain-referenced-3d-glacier-training-code
terrain-referenced-3d-glacier-training-code is a machine learning model from yyhw. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as other.
This repository contains only the training code for the final Prithvi-SDT model used in the manuscript.
Downloads · 30 days
0
Access
Public
Updated Sep 14, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py36.7 KB · 92%
From the Hugging Face model README
This repository contains only the training code for the final Prithvi-SDT model used in the manuscript.
glacier_dataset_hybrid.py: loads the glacier training dataset, including multi-temporal optical image stacks, DEM-derived terrain layers, segmentation masks, and RGI-region test splits.model_prithvi_sdt.py: defines the final Prithvi-SDT architecture, combining a Prithvi Earth-observation backbone, a detail branch, and terrain-detail fusion for glacier-area segmentation.train_prithvi_sdt.py: trains, resumes, validates, checkpoints, logs, and evaluates the full Prithvi-SDT model.Prithvi-SDT uses the IBM/NASA Prithvi-EO-2.0 300M model as the Earth-observation backbone through TerraTorch. The Prithvi backbone source code and pretrained weights are not duplicated in this repository. Before training, download the official Prithvi-EO-2.0 300M checkpoint from:
https://huggingface.co/ibm-nasa-geospatial/Prithvi-EO-2.0-300M
Then set --weight-path to the local checkpoint path, for example:
python train_prithvi_sdt.py \
--dataset-root /your/path/to/glacier_dataset \
--train-root /your/path/to/output_dir \
--weight-path /your/path/to/Prithvi_EO_V2_300M.pt
All paths in the released code are placeholders such as /your/path/to/... and should be replaced with user-specific dataset, Prithvi checkpoint, and output locations before training.