DINOv2: Learning Robust Visual Features without Supervision
Paper β’ 2304.07193 β’ Published β’ 10
This repository contains the trained linear probe, feature scaler, and cached features for the SatForensics project β an MSc dissertation project at Newcastle University exploring foundation models as forensic priors for detecting AI-generated manipulations in satellite imagery.
models/
dinov2_linear_probe.pkl β Trained scikit-learn LogisticRegressiondinov2_feature_scaler.pkl β Fitted StandardScaler (apply BEFORE the probe)features/
dinov2_features.npz β Cached DINOv2 features for the training/test setfeatures: shape (468480, 768), float32 (1,830 images Γ 256 patches)labels: shape (468480,), int64 (0 = authentic, 1 = manipulated)image_ids: shape (468480,), int64 (maps each patch to its source image)results/
rsfake_fake_per_image_scores.csv β Per-image scores on RSFAKE-1M rsinpaint (n=2000)rsfake_fake_diffusion_sat_per_image_scores.csv β Same for DiffusionSat (n=2000)rsfake_scores_and_stats*.csv β Scores joined with brightness/std/edge_density statsrsfake_heatmaps_*_qualitative.png β 6-sample heatmap visualisationsrsfake_confound_scatter_*.png β Score vs image-statistics scatter plotsfacebookresearch/dinov2_vitb14), frozenclass_weight='balanced', solver='lbfgs', max_iter=1000, random_state=42| Metric | Value |
|---|---|
| Pooled test patch AUROC (Airbus, n=70,400 test patches) | 0.9593 |
| RSFAKE rsinpaint top-10 mean (n=2,000) | 0.84 |
| RSFAKE rsinpaint % above 0.7 (max) | 95.7% |
| RSFAKE DiffusionSat top-10 mean (n=2,000) | 0.86 |
| RSFAKE DiffusionSat % above 0.7 (max) | 97.2% |
| Confound checks (brightness/std/edge_density) | All |r| β€ 0.21 |
This work is part of an MSc dissertation at Newcastle University (Project 22: SatForensics), supervised by Dr. Deepayan Bhowmik.
The cross-dataset evaluation notebook is at: https://github.com/Om-Ravindra-Patil/satforensics-crossdataset
The trained probe and cached features are released for research use only. The underlying training imagery is licensed separately by Airbus.