Encoder
The encoder is DINOv3 ViT-L/16 (facebook/dinov3-vitl16-pretrain-sat493m), a Vision Transformer that Meta pretrained with self-supervision on 493 million satellite images.
| Property | Value |
|---|---|
| Blocks | 24 transformer blocks |
| Hidden size | 1024 |
| Patch size | 16 × 16 → a 32 × 32 token grid for a 512 px tile |
| Parameters | 303.1 M |
| Feature taps | outputs of blocks 6, 12, 18 and 24 (class and register tokens dropped) |
| Normalisation | mean (0.430, 0.411, 0.296), std (0.213, 0.156, 0.143) |
Why a satellite-pretrained encoder
Section titled “Why a satellite-pretrained encoder”Nadir imagery looks nothing like the ground-level photos most depth models are trained on: there is no horizon or perspective, and height cues come from shadows, roof shape and parallax. Starting from a satellite-native representation removes most of that domain gap.
The project evaluated Depth Anything V2 (Base) with its own pretrained DPT neck (DAV2_V1) alongside DINOv3 configurations. The test evaluation used shared source splits and inference modes, while the training settings and input grids differed:
| Encoder | Val RMSE (TTA) | GAMUS test RMSE (TTA) |
|---|---|---|
| DINOv3 SAT-493M (v3) | 2.605 m | 3.565 m |
| DINOv3 SAT-493M (v4-modal) | 3.631 m | 3.321 m |
| Depth Anything V2 Base | 3.432 m | 3.396 m |
DINOv3 v3 has the lowest validation TTA RMSE, while v4-modal has the lowest test TTA RMSE. DAv2 wins on sliding-window test RMSE and sparse landscapes. See Depth Anything V2 vs DINOv3 for the graphs, run differences and reasons DINOv3 was retained; Design findings explains the training and validation differences between the DINOv3 runs.
Freezing and unfreezing
Section titled “Freezing and unfreezing”For the first freeze_epochs epochs (default 2), the encoder is frozen and only the decoder and heads train. This keeps randomly initialised heads from sending large gradients into pretrained weights. After that:
| Run | Trainable encoder blocks | Trainable encoder params |
|---|---|---|
| v1, v2 | none (frozen throughout) | 0 |
| v3 | all 24 | 303.1 M |
| v4 and v5 Kaggle runs | top 16 | 201.6 M (about 222 M trainable in total) |
| v5 final run | all 24, from step 0 (warm start) | 303.1 M |
When the encoder unfreezes, v5 ramps its learning rate in linearly over one epoch (unfreeze_warmup_epochs = 1.0) and keeps the decoder’s optimiser state. Before this change, the sudden jump in encoder LR destabilised Head B’s bin widths.
Layer-wise learning-rate decay
Section titled “Layer-wise learning-rate decay”Lower blocks hold more generic features, so they get smaller learning rates:
Model_Traning/v5/config.py (llrd)Default learning rates are encoder_lr = 6e-5 for the top block and 3e-4 for the decoder and heads. The v5 final run halves both (3e-5 / 1.5e-4) because it starts from a trained checkpoint.