File size: 2,059 Bytes
79b1798
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ba097d6
79b1798
ba097d6
79b1798
ba097d6
79b1798
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---

dataset_info:
  features:
    - name: sample_id
      dtype: string
    - name: energy
      sequence: float32
      length: 3384
    - name: n_freqs
      dtype: int32
    - name: n_dirs
      dtype: int32
    - name: source
      dtype: string
    - name: station
      dtype: string
    - name: n_anchors
      dtype: int32
    - name: anchors_json
      dtype: string
    - name: Hs
      dtype: float32
    - name: Tp
      dtype: float32
    - name: Dp
      dtype: float32
    - name: total_energy
      dtype: float32
  splits:
    - name: train
      num_examples: 37412
    - name: validation
      num_examples: 15625
    - name: test
      num_examples: 15411
license: cc-by-4.0
task_categories:
  - image-to-image
tags:
  - oceanography
  - wave-spectrum
  - compression
  - diffusion-model
---


# ATLAS-WDS: Wave Directional Spectrum Dataset

海浪方向谱压缩回传训练数据集。

## 数据格式

每条记录包含一个 **47×72 能量矩阵**(展平为 3384 维 float32 数组)
及对应的 **斜高斯锚点参数**## 快速加载

```python

from datasets import load_dataset

import numpy as np, json



ds = load_dataset("wuff-mann/ATLAS-WDS", split="train", streaming=True)



for sample in ds:

    # 还原能量矩阵

    energy = np.array(sample["energy"], dtype=np.float32).reshape(

        sample["n_freqs"], sample["n_dirs"])  # (47, 72)

    # 锚点参数

    anchors = json.loads(sample["anchors_json"])

    # 物理参数

    Hs, Tp, Dp = sample["Hs"], sample["Tp"], sample["Dp"]

```

## 三阶段训练使用

```python

# Stage 1: cLDM 预训练 — 只用能量矩阵

for sample in ds:

    matrix = np.array(sample["energy"]).reshape(47, 72)



# Stage 2: Swin 编码器 — 矩阵 + 锚点

for sample in ds:

    matrix = np.array(sample["energy"]).reshape(47, 72)

    anchors = json.loads(sample["anchors_json"])



# Stage 3: 端到端对齐 — 仅真实数据

ds_real = ds.filter(lambda x: x["source"] != "synthetic")

```