Downloads · 30 days
25
20% of all-time downloads
Ymx1025/DamageTriageFormer-model
DamageTriageFormer-model is a image classification model from Ymx1025. Use it when you need a label for an image. It is set up for pytorch. The card lists the license as cc-by-nc-4.0.
Current revision checkpoint. This is the primary crop-mode model reported in the revised manuscript. It was trained from scratch on the corrected photo-atomic split, which keeps every tile from a source photo in one f…
Downloads · 30 days
25
20% of all-time downloads
All-time downloads
124
Public
Repo size
2.5 GB
Likes
0
Public
Click a slice to open those files.
.pth1.2 GB · 100%
From the Hugging Face model README
Current revision checkpoint. This is the primary crop-mode model reported in the revised manuscript. It was trained from scratch on the corrected photo-atomic split, which keeps every tile from a source photo in one fold. It replaces the previously published tile-mode checkpoint trained on the superseded tile-level split.
Damage-TriageFormer predicts a five-class building damage typology from a single post-event RGB image. Each input is a crop centered on one footprint-derived building instance. The crop includes a 32-pixel context margin and is resized to 224×224 pixels.
| Class | Name |
|---|---|
| 0 | Undamaged |
| 1 | Partial Roof Damage |
| 2 | Total Roof Damage |
| 3 | Partial Structural Damage |
| 4 | Total Structural Collapse |
best.pth — the primary revised checkpoint, selected by validation macro F1.
It is a PyTorch state_dict containing the full fine-tuned backbone and all
three prediction heads.config.json — architecture, preprocessing, training, split, and result
metadata for this checkpoint.Checkpoint SHA-256:
49761e951f52d7ee14eaf9f7f4e4d8a81e5daaaee04d285dd55004076bcf9430.
The model fine-tunes a DINOv3 ViT-L/16 backbone end to end. The class-token embedding feeds three linear heads:
The five-class probability distribution is formed by combining the gate and conditional leaf probabilities. Unlike the tile-mode architecture, this checkpoint does not use a Simple Feature Pyramid or mask pooling. Building footprints are used to define the input crops before inference.
[0.485, 0.456, 0.406] and
standard deviation [0.229, 0.224, 0.225].[0.0, 0.3, 0.7, 0.5, 1.0]The checkpoint was selected on the validation fold. The test fold was not used for optimization or checkpoint selection.
| Metric | Validation | Test |
|---|---|---|
| Macro F1 | 0.646 | 0.616 |
| Undamaged F1 | 0.925 | 0.919 |
| Partial Roof Damage F1 | 0.539 | 0.563 |
| Total Roof Damage F1 | 0.338 | 0.272 |
| Partial Structural Damage F1 | 0.581 | 0.480 |
| Total Structural Collapse F1 | 0.848 | 0.845 |
These are single-seed, within-event results. The paper reports substantially weaker transfer to held-out disasters and discusses the small support and label ambiguity of the roof-damage classes.
Use the crop-mode script in the companion code repository: github.com/YimingXiao98/Damage-TriageFormer. The script defines the exact model class and preprocessing pipeline used for this checkpoint.
git clone https://github.com/YimingXiao98/Damage-TriageFormer.git
cd Damage-TriageFormer
export DINOV3_RUNS_ROOT=/path/to/runs
mkdir -p "$DINOV3_RUNS_ROOT/crop_dtf"
hf download Ymx1025/DamageTriageFormer-model best.pth \
--local-dir "$DINOV3_RUNS_ROOT/crop_dtf"
python scripts/train_crop.py \
--arch dinov3_vitl16 --gated --dump-only \
--crops /path/to/prepared/crops \
--index-dir instance_index \
--splits photo_splits.json \
--batch 48 --name crop_dtf
The checkpoint contains a raw PyTorch state dictionary. Loading it requires the
GatedDinoCrop architecture defined in scripts/train_crop.py.
DamageTriage-Bench (CC-BY-NC-4.0), using the released photo-atomic split.
This release supports research and reproducibility. It is not a substitute for engineering inspection and has not been validated for autonomous habitability, safety, inspection-priority, or resource-allocation decisions. It assumes that registered building footprints are available. The three study events do not establish generalization to a new disaster, and all reported configurations use a single seed. Rare and visually ambiguous roof-damage classes remain the least reliable.
Released under CC-BY-NC-4.0, consistent with DamageTriage-Bench, and subject to the redistribution terms of the underlying NOAA Emergency Response Imagery and source building-footprint layers.
@misc{xiao2026damagetriageformerfoundationmodelframeworktypologybased,
title={Damage-TriageFormer: A Foundation-Model Framework for Typology-Based Building Damage Assessment from Mono-Temporal Imagery},
author={Yiming Xiao and Yu-Hsuan Ho and Sanjay Thasma and Junwei Ma and Ali Mostafavi},
year={2026},
eprint={2606.12248},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2606.12248},
}