U-Net vs YOLO Building Detection — Smoke-Test Checkpoints
These are NOT usable, trained models. They are pipeline-validation checkpoints from 5 (U-Net) and 15 (YOLO) epochs on a 20-image sample, kept only to prove a training pipeline runs correctly end-to-end. Do not use these weights for building detection — they do not work. See "Numbers" below.
Full writeup, source code and pipeline: github.com/khalilurrrahmanridoykhan/best-model-for-satellite-imagery. Training data: khalilurrahmanridoykhan/spacenet-buildings-vegas-smoketest-sample (derived from SpaceNet Buildings v2, CC BY-SA 4.0).
What this is
A controlled, same-dataset comparison of a segmentation model (U-Net: "which pixels are building?") against a detection model (YOLO: "where are the individual buildings?") on building-footprint imagery. Both models train from the same source polygons, rasterized into masks for U-Net and converted into boxes for YOLO.
The comparison pipeline is real and tested. The checkpoints are not. They were trained on a 20-chip sample (14 train/3 val/3 test) purely to prove the label pipeline and both training loops run correctly on real, real-world georeferenced data — not to produce a working model.
Numbers (smoke test, not real results)
| Model | Metric | Value | Epochs |
|---|---|---|---|
| U-Net | test IoU | 0.280 | 5 |
| U-Net | test F1 | 0.400 | 5 |
| YOLO | test mAP@0.5 | 0.075 | 15 |
| YOLO | test mAP@0.5:0.95 | 0.024 | 15 |
At Ultralytics' default confidence threshold (0.25), the 15-epoch YOLO checkpoint predicts zero boxes on all three held-out test chips, despite a nonzero mAP@0.5 — mAP sweeps the confidence threshold down to near zero, crediting low-confidence boxes a real deployment would never surface. Full discussion in RESULTS.md.
Files
unet.pt—segmentation-models-pytorchUnet(encoder_name='resnet34', encoder_weights='imagenet'), 5 epochs, Dice+BCE lossyolo_best.pt— UltralyticsYOLO11n, 15 epochs, imgsz=256unet_metrics.json,yolo_metrics.json— the raw smoke-test metrics above
What "real" would need
Per the source repo's own RESULTS.md: the full SpaceNet download (300+ chips, not 20), real epoch counts (30+ for U-Net, 50+ for YOLO) on a free Colab/Kaggle GPU, and re-running the comparison notebook against those real checkpoints. This repo will be updated if/when that happens.
License
Apache-2.0 (code and these checkpoints). Training data is CC BY-SA 4.0 (SpaceNet) — see the dataset repo for attribution.