This repository contains code for shoreline prediction using spatio-temporal graph convolutional networks (GCNs). It incorporates the DSTD-GCN and the STSGCN model.
runner.ipynb: Main notebook for training, testing, and visualization.checkpoints/: Model checkpoints for each site.configs/: Configuration files for different models and sites.datasets/: Shoreline and wave datasets for each site.engine/: Prediction engine and related utilities.model/: Model implementations (dstdgcn,stsgcn) and layers.results/: Output predictions, targets, and visualizations.utils/: Utility functions for data processing, logging, visualization, and loss functions.
-
Install Dependencies
- Python 3.10+
- Required packages:
numpy,torch,pandas,geopandas,matplotlib,optuna,tqdm,rasterio - Install with pip:
pip install -r requirements.txt
-
Prepare Data
- Place shoreline and wave datasets in the
datasets/folder following the same formatting as examples, organized by site.
- Place shoreline and wave datasets in the
-
Run Experiments
- Modify and run
runner.ipynb.
- Modify and run
The model is built on the DSTD-GCN and the STSGCN model. We really thank the authors for sharing their wonderful works.
