File size: 12,421 Bytes
a207665
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
onescience_manifest_version: "0.1"
resource_type: dataset

resource:
  id: OneScience/ShapeNetCar
  name: ShapeNetCar
  domain: cfd
  domain_tags:
    - cfd
    - external_aerodynamics
    - car_design
  task: flow_field_prediction
  task_tags:
    - car_design
    - pressure_prediction
    - velocity_prediction
    - drag_coefficient_evaluation
  modalities:
    - unstructured_mesh
    - point_cloud
    - graph
  input_formats:
    - npy
    - vtk
    - txt
  output_formats:
    - npy
    - vtk
    - png
  summary: ShapeNetCar 汽车外流场数据集,包含原始训练数据、预处理图数据、归一化统计量和可视化参考文件。

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

website_integration:
  enabled: true
  click_target:
    platform: modelscope
    resource_url: https://modelscope.cn/datasets/OneScience/ShapeNetCar
  llm_handoff:
    readme_required: true
    manifest_required: true
    download_readme_first: true
    resolve_related_models: true
    default_run_goal: data_validation

runtime:
  enabled: true
  onescience_domain: cfd
  min_onescience_version: null
  supported_execution:
    - local
    - local_slurm
    - remote_slurm
    - scnet_mcp

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
  source_paths: []
  compatibility:
    examples_path: examples/cfd/Transolver-Car-Design
    status: examples_compatible

runtime_package:
  kind: dataset_package
  package_root: .
  standard_layout:
    workdir: .
    config_dir: metadata
    checkpoint_dir: null
    data_dir: data
    output_dir: null
  apply_policy:
    mode: direct_use
    target: session_workdir
    overwrite: true
    protect_installed_onescience: true
  entry_files:
    - metadata/schema.yaml
    - scripts/validate_shapenetcar_data.py
  entrypoints:
    preflight: scripts/validate_shapenetcar_data.py
    inference: null
    train: null
    finetune: null
    evaluate: null
    visualize: null
    deploy: null

files:
  model_files: []
  dataset_files:
    - id: mlcfd_data_root
      path: data/mlcfd_data
      role: train_split
      description_zh: ShapeNetCar 数据根目录,包含 training_data、preprocessed_data、stats、图表原始数据和可视化参考图。
      required: true
      required_for: [preflight, train, evaluate, inference, visualize]
      format: directory
      source:
        platform: modelscope
        repo_id: OneScience/ShapeNetCar
        repo_type: dataset
        path: data/mlcfd_data
        revision: main
        url: null
        download_method: command_ref
        command_ref: commands.download.download_dataset_package
      mirrors: []
      local_path: data/mlcfd_data
      size: 18G
      checksum: metadata/file_manifest.sha256
      large_file: true
    - id: training_data
      path: data/mlcfd_data/training_data
      role: train_split
      description_zh: 原始训练数组和部分 VTK/文本数据,按 param0  param8 组织。
      required: true
      required_for: [train, evaluate, inference]
      format: npy_directory
      source:
        platform: modelscope
        repo_id: OneScience/ShapeNetCar
        repo_type: dataset
        path: data/mlcfd_data/training_data
        revision: main
        url: null
        download_method: command_ref
        command_ref: commands.download.download_dataset_package
      mirrors: []
      local_path: data/mlcfd_data/training_data
      size: null
      checksum: metadata/file_manifest.sha256
      large_file: true
    - id: preprocessed_data
      path: data/mlcfd_data/preprocessed_data
      role: train_split
      description_zh: Transolver 数据管道直接读取的预处理图样本,样本内包含 x、y、pos、surf  edge_index。
      required: true
      required_for: [preflight, train, evaluate, inference]
      format: npy_directory
      source:
        platform: modelscope
        repo_id: OneScience/ShapeNetCar
        repo_type: dataset
        path: data/mlcfd_data/preprocessed_data
        revision: main
        url: null
        download_method: command_ref
        command_ref: commands.download.download_dataset_package
      mirrors: []
      local_path: data/mlcfd_data/preprocessed_data
      size: null
      checksum: metadata/file_manifest.sha256
      large_file: true
    - id: normalization_stats
      path: data/mlcfd_data/stats
      role: normalization_stats
      description_zh: 输入输出均值和标准差,模型训练、推理和反归一化评测均需要。
      required: true
      required_for: [preflight, train, evaluate, inference]
      format: npy_directory
      source:
        platform: modelscope
        repo_id: OneScience/ShapeNetCar
        repo_type: dataset
        path: data/mlcfd_data/stats
        revision: main
        url: null
        download_method: command_ref
        command_ref: commands.download.download_dataset_package
      mirrors: []
      local_path: data/mlcfd_data/stats
      size: null
      checksum: metadata/file_manifest.sha256
      large_file: false
    - id: schema
      path: metadata/schema.yaml
      role: schema
      description_zh: 数据字段、shape、dtype 和目录模式说明。
      required: true
      required_for: [preflight]
      format: yaml
      source:
        platform: modelscope
        repo_id: OneScience/ShapeNetCar
        repo_type: dataset
        path: metadata/schema.yaml
        revision: main
        url: null
        download_method: command_ref
        command_ref: commands.download.download_dataset_package
      mirrors: []
      local_path: metadata/schema.yaml
      size: null
      checksum: null
      large_file: false
  config_files: []
  sample_files:
    - id: validation_script
      path: scripts/validate_shapenetcar_data.py
      role: sample
      description_zh: 数据集读取验证脚本,会读取统计文件、训练数组和一个预处理样本,检查 shape、dtype 和可读性。
      required: true
      required_for: [preflight]
      format: py
      source:
        platform: modelscope
        repo_id: OneScience/ShapeNetCar
        repo_type: dataset
        path: scripts/validate_shapenetcar_data.py
        revision: main
        url: null
        download_method: command_ref
        command_ref: commands.download.download_dataset_package
      mirrors: []
      local_path: scripts/validate_shapenetcar_data.py
      size: null
      checksum: null
      large_file: false

dataset:
  format:
    - npy
    - vtk
    - txt
    - xlsx
    - png
  sample_unit: 一个汽车几何样本的预处理图目录,包含 x.npy、y.npy、pos.npy、surf.npy  edge_index.npy。
  schema:
    path: metadata/schema.yaml
  splits:
    train: data/mlcfd_data/training_data/param0..param8
    validation:  Transolver-Car-Design 配置 datapipe.data.splits.fold_id 决定
    test:  Transolver-Car-Design 配置 datapipe.data.splits.fold_id 决定
  statistics:
    normalization:
      - data/mlcfd_data/stats/mean_in.npy
      - data/mlcfd_data/stats/std_in.npy
      - data/mlcfd_data/stats/mean_out.npy
      - data/mlcfd_data/stats/std_out.npy

relations:
  required_datasets: []
  optional_datasets: []
  compatible_models:
    - id: OneScience/Transolver-Car-Design/mlcfd_data
      role: train_data
      required_for: [preflight, train, inference, evaluate, visualize]
      resource_ref:
        platform: modelscope
        repo_id: OneScience/Transolver-Car-Design/mlcfd_data
        repo_type: model
        url: https://modelscope.cn/models/OneScience/Transolver-Car-Design/mlcfd_data
        revision: main
        readme_path: README.md
        manifest_path: manifest.yaml
      expected_local_path: session_workdir/data/mlcfd_data
      adapter: null

run_matrix:
  scenarios:
    - name: data_validation
      default: true
      capability: preflight
      description_zh: 验证 ShapeNetCar 数据目录结构、统计文件和预处理样本可读。
      required_datasets:
        - id: OneScience/ShapeNetCar
          role: train_data
          local_path: data/mlcfd_data
      required_model_files: []
      required_dataset_files:
        - data/mlcfd_data
        - metadata/schema.yaml
        - scripts/validate_shapenetcar_data.py
      command_refs:
        - commands.preflight.validate_data
      expected_outputs:
        - "[OK] ShapeNetCar data validation passed"

capabilities:
  inference: false
  train: false
  finetune: false
  evaluate: false
  visualize: false
  deploy: false
  data_validation: true

commands:
  download:
    - name: download_dataset_package
      target: dataset
      repo_id: OneScience/ShapeNetCar
      source: .
      local_path: .
      required: true
      required_for: [preflight, train, evaluate, inference, visualize]
      command: modelscope download --dataset OneScience/ShapeNetCar --local_dir .
  preflight:
    - name: validate_data
      description: 读取并验证数据目录结构、统计文件、训练数组和预处理图样本。
      cwd: .
      command: python scripts/validate_shapenetcar_data.py --data-root data/mlcfd_data
      required_files:
        - data/mlcfd_data
        - metadata/schema.yaml
        - scripts/validate_shapenetcar_data.py
      required_env:
        - python
        - numpy
      expected_outputs:
        - path: stdout
          type: text
          contains: "[OK] ShapeNetCar data validation passed"
      success_criteria:
        - exit_code == 0
  prepare: []
  inference: []
  train: []
  finetune: []
  evaluate: []
  visualize: []
  deploy: []

expected_outputs:
  - path: stdout
    type: text
    produced_by: commands.preflight.validate_data
    description_zh: 输出 ShapeNetCar data validation passed、训练参数目录数量、预处理样本数量和已检查样本路径。

diagnostics:
  - error_pattern: "data root not found"
    likely_cause: 数据集未下载到当前目录,或当前 cwd 不是数据集仓库根目录。
    action: 执行 modelscope download --dataset OneScience/ShapeNetCar --local_dir .,然后在数据集仓库根目录运行验证脚本。
  - error_pattern: "missing directory"
    likely_cause: data/mlcfd_data 内缺少 training_data、preprocessed_data  stats。
    action: 检查下载是否完整,必要时重新下载数据集仓库。
  - error_pattern: "stats shape mismatch"
    likely_cause: 归一化统计文件损坏或版本不匹配。
    action:  metadata/file_manifest.sha256 对比文件大小和 SHA256,重新下载不一致的文件。
  - error_pattern: "schema mismatch"
    likely_cause: 预处理样本不是 Transolver-Car-Design 期望的 ShapeNetCar 图数据格式。
    action: 确认使用的是 OneScience/ShapeNetCar,而不是其他车辆 CFD 数据。
  - error_pattern: "cannot read"
    likely_cause: npy 文件损坏或权限不足。
    action: 检查文件权限、磁盘完整性和 SHA256。

domain_extension:
  cfd:
    geometry_type: car_body
    mesh_type: unstructured_graph
    variables:
      - velocity_x
      - velocity_y
      - velocity_z
      - pressure
      - drag_coefficient
    metrics:
      - relative_l2_pressure
      - relative_l2_velocity
      - rmse_pressure
      - rmse_velocity
      - mean_relative_cd_error
      - spearman_correlation

large_resource:
  enabled: true
  total_size: 18G
  file_count: 10967
  download_policy: on_demand
  default_download: full_for_validation
  minimal_files:
    - data/mlcfd_data/stats
    - data/mlcfd_data/training_data
    - data/mlcfd_data/preprocessed_data
  full_download:
    command: modelscope download --dataset OneScience/ShapeNetCar --local_dir .
  partial_download:
    command: null