How tinyaway/ssf-gnn works
SSF-GNN is a research implementation for classifying seven multi-hazard categories from Sentinel-2 imagery. Its documented workflow loads labeled imagery, optionally derives spectral indices, and trains or tests an SSF-GNN that combines segmentation-derived semantic structure with spectral graph reasoning. The README also describes S2MHD as a 169-event dataset. Source excerpts show the dataset, model, and training paths; test.py is documented but unsampled, so its internal behavior is not inferred.
Main entry points: model.py SSF-GNN classifier · PSPNet.py PSP segmentation branch · dataset.py Labeled imagery loader · train.py Training and validation
Components 13
Imagery and features
- Labeled imagery loader
dataset.py - Spectral indices
Compute_indices.py
Model components
- SSF-GNN classifier
model.py - PSP segmentation branch
PSPNet.py - Semantic graph construction
model.py - Spectral graph construction
model.py - Dual graph reasoning
model.py - Class prediction head
model.py - ViG encoder
ViG.py - EfficientNet encoder
efficientnet.py
Training and evaluation
- Training and validation
train.py - Testing entry point
test.py
Other components
- S2MHD imagery
Connections 12
- S2MHD imagery → Labeled imagery loader: provides imagery
README.md - Labeled imagery loader → Spectral indices: computes indices
dataset.py - Training and validation → Labeled imagery loader: loads batches
train.py - Training and validation → SSF-GNN classifier: trains classifier
train.py - S2MHD imagery → Testing entry point: testing data
- SSF-GNN classifier → PSP segmentation branch: runs segmentation
model.py - PSP segmentation branch → ViG encoder: uses encoder
PSPNet.py - PSP segmentation branch → EfficientNet encoder: alternative encoder
PSPNet.py - SSF-GNN classifier → Semantic graph construction: builds semantic graph
model.py - SSF-GNN classifier → Spectral graph construction: builds spectral graph
model.py - SSF-GNN classifier → Dual graph reasoning: applies graph layers
model.py - SSF-GNN classifier → Class prediction head: decodes features
model.py