AlumniBBQ commited on
Commit
7b2d1f8
·
verified ·
1 Parent(s): 425b7b7

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +80 -0
README.md ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ library_name: pytorch
4
+ tags:
5
+ - seismic-denoising
6
+ - surface-wave-suppression
7
+ - ground-roll
8
+ - self-supervised-pretraining
9
+ - transformer
10
+ ---
11
+
12
+ # SWST — Surface-Wave Suppression Transformer
13
+
14
+ Trained checkpoint for **SWST**, a two-stage Transformer for suppressing
15
+ surface waves (ground roll) in land seismic data:
16
+
17
+ 1. **Self-supervised pretraining**: a deterministic low-frequency
18
+ spatiotemporal-energy detector locates candidate surface-wave patches in
19
+ unlabeled field records; a sparse masked autoencoder with SwinV2-style
20
+ window attention reconstructs masked patches and learns surface-wave
21
+ morphology and spatial continuity without paired clean/noisy data.
22
+ 2. **Supervised fine-tuning**: the sparse encoder is converted into a
23
+ parameter-compatible dense encoder that predicts the complete surface-wave
24
+ component; a convolutional residual head refines patch boundaries and
25
+ local waveforms. The restored record is `clip(input − predicted noise)`.
26
+
27
+ ## Model description
28
+
29
+ | | |
30
+ |---|---|
31
+ | Architecture | `mae_swinv2_sparse_refine_base_patch16` (sparse SwinV2 encoder + MAE decoder + refinement head) |
32
+ | Parameters | 111,554,353 |
33
+ | Checkpoint format | PyTorch-Lightning `final.ckpt` |
34
+ | File size | 881,285,912 bytes |
35
+ | SHA-256 | `3cf478d283dd5601aa34924d256863e447f8b4eb2df5ed2d70f5b674465b584a` |
36
+ | Input | single-channel seismic section, normalized to [-1, 1] |
37
+ | Output | predicted surface-wave (noise) component, same shape |
38
+ | License | CC BY-NC 4.0 |
39
+
40
+ ## Quick start
41
+
42
+ A self-contained reproducible example (input data, inference script with the
43
+ manuscript's sliding-window protocol, and expected outputs for verification)
44
+ is available in the `repro_example/` folder of the accompanying code
45
+ repository referenced in the manuscript Data Statement.
46
+
47
+ Minimal usage with the source package on disk:
48
+
49
+ ```python
50
+ import torch
51
+ from MAE.models_restoration import get_mae_restoration_model
52
+
53
+ model = get_mae_restoration_model(
54
+ "mae_swinv2_sparse_refine_base_patch16", img_size=256, in_chans=1
55
+ ).eval()
56
+ ckpt = torch.load("final.ckpt", map_location="cpu")
57
+ state = {k[len("model."):]: v for k, v in ckpt["state_dict"].items()
58
+ if k.startswith("model.")}
59
+ model.load_state_dict(state, strict=True)
60
+
61
+ section = torch.randn(1, 1, 256, 256) # your normalized section patch
62
+ predicted_noise = model(section) # [1, 1, 256, 256]
63
+ restored = torch.clamp(section - predicted_noise, -1.0, 1.0)
64
+ ```
65
+
66
+ For full 2000 x 256 records use the sliding-window inference from the
67
+ `repro_example/` scripts (256-pixel windows, stride 128, separable Hann
68
+ blending).
69
+
70
+ ## Training data
71
+
72
+ Pretraining used unlabeled field records (500 Hz sampling) from multiple
73
+ survey areas; fine-tuning used synthetic pairs built from surface-wave-free
74
+ references and field-derived surface-wave components. No confidential field
75
+ data is required to use or evaluate the checkpoint.
76
+
77
+ ## Intended use
78
+
79
+ Research on seismic noise attenuation and reproducible evaluation of the
80
+ manuscript's results. Not validated for production processing.