Sompote commited on
Commit
0f47e44
·
verified ·
1 Parent(s): 3db00a5

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +50 -8
README.md CHANGED
@@ -1,13 +1,55 @@
1
  ---
2
- title: OpenSWI
3
- emoji: 📊
4
- colorFrom: pink
5
- colorTo: indigo
6
- sdk: gradio
7
- sdk_version: 6.20.0
8
- python_version: '3.12'
9
  app_file: app.py
10
  pinned: false
 
 
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: Vs From Dispersion Curve
3
+ emoji: 🌍
4
+ colorFrom: blue
5
+ colorTo: red
6
+ sdk: streamlit
7
+ sdk_version: "1.38.0"
 
8
  app_file: app.py
9
  pinned: false
10
+ license: mit
11
+ short_description: 1-D shear-wave velocity from a Rayleigh phase-velocity curve
12
  ---
13
 
14
+ # Shear-wave velocity from a phase-velocity dispersion curve
15
+
16
+ Inverts a fundamental-mode Rayleigh **phase-velocity** dispersion curve (the
17
+ SASW/MASW observable) for a 70-layer 1-D Vs profile in a single forward pass —
18
+ no initial model, no iterative inversion.
19
+
20
+ The model is a physically-coded transformer encoder–decoder (2.44 M
21
+ parameters): each dispersion pick is a token carrying its physical period, and
22
+ each output depth is a query token carrying its physical depth, reading the
23
+ period tokens by masked cross-attention. Band-limited and gappy curves are
24
+ handled natively, with no interpolation.
25
+
26
+ Trained on **OpenSWI-shallow** (22 M curve/profile pairs). Test accuracy:
27
+ 0.151 km/s full-profile RMSE / 6.0 % MAPE / R² 0.949 on 50 k held-out samples;
28
+ 38 m/s MAE versus the tomographic reference on 5,297 real Long Beach curves.
29
+
30
+ ## Usage
31
+
32
+ - Pick a built-in example, upload a CSV (period **or** frequency + phase
33
+ velocity), or paste values in the sidebar.
34
+ - **Site scale factor k**: the elastodynamic problem is scale-invariant, so a
35
+ high-frequency engineering curve (e.g. MASW at a 30 m site) is inverted by
36
+ multiplying its periods by k into the model's 0.2–10 s training band and
37
+ dividing the output depths by k. Velocities are never rescaled — the
38
+ ≈ 0.3–4.5 km/s support applies at every scale.
39
+ - Gray bands in the profile plot mark depths outside the range the input band
40
+ physically constrains (wavelength heuristic ≈ ⅓·λ_min to ½·λ_max); treat the
41
+ profile there as extrapolation.
42
+ - The predicted profile can be downloaded as CSV.
43
+
44
+ ## Scope
45
+
46
+ Trained on 0.2–10 s periods, 0–2.76 km depth, Vs ≈ 0.3–4.5 km/s. Curves
47
+ outside this envelope — e.g. soft-soil sites with Vs < 0.3 km/s — are out of
48
+ distribution.
49
+
50
+ ## Files
51
+
52
+ - `app.py` — Streamlit interface
53
+ - `model.py` — standalone model definition (depth-query encoder–decoder)
54
+ - `checkpoints/best_model.pth` — trained weights (v4 finalist)
55
+ - `assets/` — period/depth grids and example curves from the test split