1 · DeiT-Small/16 ViT pipeline inside the detector
Exact parameters from onnx-community/document-moire-detector-ONNX/config.json:
image_size: 224, patch_size: 16 (14×14 = 196 patches),
num_hidden_layers: 12, num_attention_heads: 6, hidden_size: 384.
2 · 2D DFT Spatial Frequency & Moiré Strength Sweep (0% → 100%)
Initialising model loader…
Document preview with LCD interference
Centered 2D DFT magnitude (bright off-center peaks inside/outside dashed ring = periodic moiré waves)
| Moiré strength | High-freq DFT | Clean prob | Moiré prob | Verdict | Latency |
|---|---|---|---|---|---|
| Run the 0% → 100% sweep to measure where periodic interference flips the ViT logit. | |||||
3 · 4×4 Patch Occlusion Sensitivity Map (16×16 ViT Patches)
Masks one 56×56 region (covering ~3.5×3.5 patches of the 14×14 ViT token grid) at a time on the current preview strength and measures how much the baseline Top-1 score drops.
Click any cell after running the 4×4 occlusion sweep.
Selected 56×56 cell details appear here after running.
| Cell | 56×56 region | Occluded score | Score drop | Occluded Top-1 | Inspect |
|---|---|---|---|---|---|
| Run the 4×4 Patch Occlusion sweep above to populate cell scores. | |||||