File size: 10,936 Bytes
e9aca9c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
onescience_manifest_version: "0.1"
resource_type: dataset
resource:
  id: OneScience/eagle
  name: eagle
  domain: cfd
  domain_tags: [cfd, eagle, turbulent_flow, unstructured_mesh]
  task: eagle_flow_forecasting_dataset
  task_tags: [train_data, eval_data, visualization_input]
  modalities: [unstructured_mesh, temporal_field]
  input_formats: [npz, npy]
  output_formats: []
  summary: Eagle 数据集标准包,包含 Cre/Spl/Tri 三类二维非定常流体仿真样本及 GraphViT 所需聚类文件。
  language: zh
  license: unknown

platform_resource:
  primary:
    platform: modelscope
    repo_id: OneScience/eagle
    repo_type: dataset
    url: https://modelscope.cn/datasets/OneScience/eagle
    revision: main
    readme_path: README.md
    manifest_path: onescience_run_manifest.yaml
  mirrors: []
  access:
    visibility: public
    license: null

website_integration:
  enabled: true
  click_target:
    platform: modelscope
    resource_url: https://modelscope.cn/datasets/OneScience/eagle
  llm_handoff:
    readme_required: true
    manifest_required: true
    download_readme_first: true
    resolve_related_models: true
    default_run_goal: minimal_validation
    default_workdir: .
    cwd_note: 如果使用 modelscope download --cache_dir 下载,请先 cd 到实际下载后的数据集仓库根目录,模型侧再把 ONESCIENCE_EAGLE_DATA_DIR 指向 data/Eagle_dataset。

runtime:
  enabled: true
  onescience_domain: cfd
  supported_execution: [local_dataset_validation, model_training_input, model_evaluation_input]
  environment:
    exported_env:
      ONESCIENCE_EAGLE_DATA_DIR: <dataset_repo_root>/data/Eagle_dataset
  dependencies:
    python_packages: [numpy, ruamel.yaml]

onescience:
  repo: https://gitee.com/onescience-ai/onescience
  official_links:
    gitee:
      doc: https://gitee.com/onescience-ai/onescience-doc
      onescience: https://gitee.com/onescience-ai/onescience
      skills: https://gitee.com/onescience-ai/oneskills
    github:
      doc: https://github.com/onescience-ai/OneScience-doc
      onescience: https://github.com/onescience-ai/OneScience
      skills: https://github.com/onescience-ai/oneskills
  install:
    required_by_default: false
    command: bash install.sh cfd
  compatibility:
    examples_path: onescience/examples/cfd/EagleMeshTransformer
    status: examples_compatible
  datapipe: onescience.datapipes.cfd.EagleDatapipe

runtime_package:
  kind: standard_runtime_package
  package_root: .
  standard_layout:
    workdir: .
    data_dir: data/Eagle_dataset
    metadata_dir: metadata
    output_dir: validation_outputs
  apply_policy:
    mode: direct_use
    target: session_workdir
    overwrite: false
    protect_installed_onescience: true
  entry_files:
    - data/Eagle_dataset
    - metadata/schema.yaml
    - metadata/train.txt
    - metadata/valid.txt
    - metadata/test.txt
    - files_sha256.jsonl
    - scripts/validate_eagle_dataset.py
  entrypoints:
    preflight: scripts/validate_eagle_dataset.py
    inference: null
    train: null
    finetune: null
    evaluate: null
    visualize: null
    deploy: null

files:
  dataset_files:
    - id: eagle_data_root
      path: data/Eagle_dataset
      role: train_eval_data
      description_zh: EAGLE 原始仿真和聚类数据根目录,包含 Cre/Spl/Tri。
      required: true
      required_for: [preflight, train, evaluate, visualize]
      source:
        platform: modelscope
        repo_id: OneScience/eagle
        repo_type: dataset
        path: data/Eagle_dataset
        revision: main
        download_method: command_ref
        command_ref: commands.download.download_dataset
      local_path: data/Eagle_dataset
    - id: eagle_schema
      path: metadata/schema.yaml
      role: schema
      description_zh: 描述 sim.npz、triangles.npy  constrained_kmeans 文件的字段、shape  dtype。
      required: true
      required_for: [preflight]
      source: {platform: modelscope, repo_id: OneScience/eagle, repo_type: dataset, path: metadata/schema.yaml, revision: main, download_method: command_ref, command_ref: commands.download.download_dataset}
      local_path: metadata/schema.yaml
    - id: eagle_sha256_inventory
      path: files_sha256.jsonl
      role: file_size_sha256_inventory
      description_zh: 每个数据文件的相对路径、大小和 SHA256,用于上传前和下载后完整性校验。
      required: true
      required_for: [preflight]
      source: {platform: modelscope, repo_id: OneScience/eagle, repo_type: dataset, path: files_sha256.jsonl, revision: main, download_method: command_ref, command_ref: commands.download.download_dataset}
      local_path: files_sha256.jsonl
  config_files: []
  sample_files:
    - id: eagle_split_metadata
      path: metadata/*.txt
      role: split_files
      description_zh: EagleMeshTransformer 使用的 train/valid/test 相对路径列表。
      required: true
      required_for: [train, evaluate]
      source: {platform: modelscope, repo_id: OneScience/eagle, repo_type: dataset, path: metadata/, revision: main, download_method: command_ref, command_ref: commands.download.download_dataset}
      local_path: metadata/

dataset:
  format: [npz, npy]
  sample_unit: Cre/Spl/Tri 下的一个 case/trajectory 目录
  schema:
    path: metadata/schema.yaml
  splits:
    train:
      path: metadata/train.txt
      count: 947
    validation:
      path: metadata/valid.txt
      count: 118
    test:
      path: metadata/test.txt
      count: 118
  size:
    sample_directories: 1200
    files: 7200
    geometry_directories:
      Cre: 400
      Spl: 400
      Tri: 400

relations:
  compatible_models:
    - id: OneScience/EagleMeshTransformer
      name: EagleMeshTransformer
      role: train_data
      required_for: [preflight, train, inference, evaluate, visualize]
      resource_ref:
        platform: modelscope
        repo_id: OneScience/EagleMeshTransformer
        repo_type: model
        url: https://modelscope.cn/models/OneScience/EagleMeshTransformer
        revision: main
        readme_path: README.md
        manifest_path: onescience_run_manifest.yaml
      expected_local_path: ${ONESCIENCE_EAGLE_DATA_DIR}
      expected_model_env: ONESCIENCE_EAGLE_DATA_DIR
      expected_model_config: conf/graphvit_eagle.yaml
  required_by_models:
    - resource_ref:
        platform: modelscope
        repo_id: OneScience/EagleMeshTransformer
        repo_type: model
        url: https://modelscope.cn/models/OneScience/EagleMeshTransformer
        revision: main
        readme_path: README.md
        manifest_path: onescience_run_manifest.yaml

run_matrix:
  scenarios:
    - name: validate_structure
      capability: dataset_preflight
      default: true
      required_datasets:
        - id: OneScience/eagle
          role: train_data
          local_path: data/Eagle_dataset
      required_model_files: []
      required_dataset_files:
        - data/Eagle_dataset/Cre|Spl|Tri/<case>/<traj>/sim.npz
        - data/Eagle_dataset/Cre|Spl|Tri/<case>/<traj>/triangles.npy
        - data/Eagle_dataset/Cre|Spl|Tri/<case>/<traj>/constrained_kmeans_10.npy
        - data/Eagle_dataset/Cre|Spl|Tri/<case>/<traj>/constrained_kmeans_20.npy
        - data/Eagle_dataset/Cre|Spl|Tri/<case>/<traj>/constrained_kmeans_30.npy
        - data/Eagle_dataset/Cre|Spl|Tri/<case>/<traj>/constrained_kmeans_40.npy
      preconditions: [当前工作目录为数据集仓库根目录。]
      command_refs: [commands.preflight.validate_dataset]
      outputs:
        - '控制台输出 "[OK] dataset validation completed"'
    - name: validate_integrity
      capability: dataset_integrity
      required_datasets:
        - id: OneScience/eagle
          role: train_data
          local_path: data/Eagle_dataset
      required_model_files: []
      required_dataset_files:
        - files_sha256.jsonl
        - "data/Eagle_dataset/**"
      preconditions:
        - 当前工作目录为数据集仓库根目录。
      command_refs: [commands.preflight.validate_dataset_full_hash]
      outputs:
        - '控制台输出 "[OK] checksum manifest verified in size+sha256 mode"'
    - name: provide_to_model
      capability: train
      required_datasets:
        - id: OneScience/eagle
          role: train_data
          local_path: data/Eagle_dataset
      required_model_files:
        - "OneScience/EagleMeshTransformer:conf/graphvit_eagle.yaml"
      required_dataset_files:
        - "data/Eagle_dataset/**/sim.npz"
        - "data/Eagle_dataset/**/triangles.npy"
        - "data/Eagle_dataset/**/constrained_kmeans_40.npy"
      preconditions:
        - 模型仓库已下载。
      command_refs: [commands.prepare.export_dataset_env]
      outputs:
        - 模型侧 scripts/preflight_check.py 可以通过数据目录检查。

capabilities:
  dataset_validation: true
  train_input: true
  inference_input: true
  evaluation_input: true
  visualization_input: true

commands:
  download:
    - name: download_dataset
      cwd: session_workdir
      command: modelscope download --dataset OneScience/eagle
    - name: download_model
      cwd: session_workdir
      command: modelscope download --model OneScience/EagleMeshTransformer
  prepare:
    - name: export_dataset_env
      cwd: .
      command: export ONESCIENCE_EAGLE_DATA_DIR=/path/to/OneScience_eagle/data/Eagle_dataset
  preflight:
    - name: validate_dataset
      cwd: .
      command: python scripts/validate_eagle_dataset.py
    - name: validate_dataset_full_hash
      cwd: .
      command: python scripts/validate_eagle_dataset.py --full-hash
  train: []
  inference: []
  evaluate: []
  visualize: []
  finetune: []
  deploy: []

expected_outputs:
  validate_dataset: ["[OK] dataset validation completed"]
  validate_dataset_full_hash: ["[OK] checksum manifest verified in size+sha256 mode: 7200 files"]
  model_consumption: [模型包 scripts/preflight_check.py 通过数据目录检查。]

diagnostics:
  - id: missing_data_root
    symptom: dataset root not found
    action: 确认当前目录为 OneScience/eagle 数据集仓库根目录,且 data/Eagle_dataset 存在。
  - id: missing_sample_file
    symptom: missing required file
    action: 对照 files_sha256.jsonl 重新上传或重新下载缺失样本目录。
  - id: checksum_mismatch
    symptom: sha256 mismatch
    action: 数据文件损坏或未完整上传,需重新同步对应文件。
  - id: schema_mismatch
    symptom: unexpected pointcloud shape  unexpected dtype
    action: 检查是否误用了非 Eagle v1 数据,或文件在解压/上传过程中被替换。

domain_extension:
  cfd:
    geometry_types: [Cre, Spl, Tri]
    mesh_type: unstructured_triangular_mesh
    variables: [pointcloud, mask, VX, VY, PS, PG]
    temporal_steps_per_sample: 990
    cluster_files: [constrained_kmeans_10.npy, constrained_kmeans_20.npy, constrained_kmeans_30.npy, constrained_kmeans_40.npy]