Howway commited on
Commit
ad80c24
·
verified ·
1 Parent(s): 2c6a7d9

Rename P3D -> TCF (3D turbulent channel flow)

Browse files
Files changed (4) hide show
  1. README.md +2 -2
  2. TCF/best_model.pth +3 -0
  3. TCF/config.json +37 -0
  4. TCF/config.yaml +131 -0
README.md CHANGED
@@ -14,14 +14,14 @@ for Neural PDE Solvers**. See the code at https://github.com/Howw-Way/ReViT.
14
 
15
  | Model | Channels | Grid | Patch | Architecture |
16
  |-------|----------|------|-------|--------------|
17
- | `P3D` | 4 | 96³ | 3 | `ReViT3D` |
18
  | `MHD_64` | 7 | 64³ | 2 | `ReViT3D` |
19
 
20
  ## Usage
21
 
22
  ```python
23
  from revit import load_pretrained
24
- model = load_pretrained("P3D") # or "MHD_64"
25
  ```
26
 
27
  Each subfolder holds `config.json` (the model config), `best_model.pth`
 
14
 
15
  | Model | Channels | Grid | Patch | Architecture |
16
  |-------|----------|------|-------|--------------|
17
+ | `TCF` | 4 | 96³ | 3 | `ReViT3D` |
18
  | `MHD_64` | 7 | 64³ | 2 | `ReViT3D` |
19
 
20
  ## Usage
21
 
22
  ```python
23
  from revit import load_pretrained
24
+ model = load_pretrained("TCF") # or "MHD_64"
25
  ```
26
 
27
  Each subfolder holds `config.json` (the model config), `best_model.pth`
TCF/best_model.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:20b60310b1842fd2fe6695cddd68a8e526b50c782d378ff1a8e49828a8ccaf91
3
+ size 9513971
TCF/config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_vector_chans": 0,
3
+ "aggregation_method": "custom_attention",
4
+ "attn_drop_rate": 0.1,
5
+ "blur_sigma": null,
6
+ "decoder_type": "trilinear",
7
+ "depth": [
8
+ 1,
9
+ 2,
10
+ 4,
11
+ 2,
12
+ 1
13
+ ],
14
+ "drop_path_rate": 0.1,
15
+ "drop_rate": 0.1,
16
+ "embed_dim": 48,
17
+ "embed_type": "AOVC",
18
+ "euler_connection": true,
19
+ "img_D": 96,
20
+ "img_H": 96,
21
+ "img_W": 96,
22
+ "in_channels": 4,
23
+ "intra_patch_pos_encoding": false,
24
+ "local_attention": false,
25
+ "max_embed_dim": 192,
26
+ "mlp_ratio": 4.0,
27
+ "num_heads": 8,
28
+ "out_channels": 4,
29
+ "patch_merge": "global",
30
+ "patch_size": 3,
31
+ "periodic": true,
32
+ "pos_encoding_type": "eq_rel_simple",
33
+ "primary_vector_chans": 3,
34
+ "primary_vector_start_idx": 0,
35
+ "scalar_chans": 1,
36
+ "window_size": 2
37
+ }
TCF/config.yaml ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ accumulate_grad_batches: 1
2
+ additional_vector_chans: 0
3
+ aggregation_method: custom_attention
4
+ alpha: 0.99
5
+ attn_drop_rate: 0.1
6
+ augment_angles: null
7
+ augment_name: NoAug
8
+ batch_size: 1
9
+ betas: !!python/tuple
10
+ - 0.9
11
+ - 0.999
12
+ blur_sigma: null
13
+ case_name: mstep1_test1_lr0.001_wd0.001_batch1_seed777_drop0.1_embeddim48_depth5_head8_patch3_AdamW_ReduceLROnPlateau_eulerTrue_sigmaNone_NoAug_PeriTrue_pmglobal
14
+ channels: all
15
+ check_train: false
16
+ decoder_type: trilinear
17
+ depth: &id001
18
+ - 1
19
+ - 2
20
+ - 4
21
+ - 2
22
+ - 1
23
+ device: cuda:3
24
+ drop_path_rate: 0.1
25
+ drop_rate: 0.1
26
+ embed_dim: 48
27
+ embed_type: AOVC
28
+ epochs: 1000
29
+ eps: 1.0e-08
30
+ euler_connection: true
31
+ exclude_filters: null
32
+ img_D: 96
33
+ img_H: 96
34
+ img_W: 96
35
+ img_size: 96
36
+ in_channels: 4
37
+ include_filters: null
38
+ intra_patch_pos_encoding: false
39
+ load_ckpt: false
40
+ local_attention: false
41
+ lr: 0.001
42
+ max_embed_dim: 192
43
+ mlp_ratio: 4.0
44
+ model_config:
45
+ additional_vector_chans: 0
46
+ aggregation_method: custom_attention
47
+ attn_drop_rate: 0.1
48
+ blur_sigma: null
49
+ decoder_type: trilinear
50
+ depth: *id001
51
+ drop_path_rate: 0.1
52
+ drop_rate: 0.1
53
+ embed_dim: 48
54
+ embed_type: AOVC
55
+ euler_connection: true
56
+ img_D: 96
57
+ img_H: 96
58
+ img_W: 96
59
+ in_channels: 4
60
+ intra_patch_pos_encoding: false
61
+ local_attention: false
62
+ max_embed_dim: 192
63
+ mlp_ratio: 4.0
64
+ num_heads: 8
65
+ out_channels: 4
66
+ patch_merge: global
67
+ patch_size: 3
68
+ periodic: true
69
+ pos_encoding_type: eq_rel_simple
70
+ primary_vector_chans: 3
71
+ primary_vector_start_idx: 0
72
+ scalar_chans: 1
73
+ window_size: 2
74
+ model_id: null
75
+ model_name: 3D|Emb|AOVC|PE|eq_rel_simple|WS2|LoAFalse|PS3|H48|MH192|D5|NH8|Aggcustom_attention|Dec|trilinear
76
+ model_type: ReViT3D
77
+ momentum: 0.9
78
+ n_steps_input: 1
79
+ n_steps_output: 20
80
+ num_heads: 8
81
+ optimizer: AdamW
82
+ out_channels: 4
83
+ patch_merge: global
84
+ patch_size: 3
85
+ periodic: true
86
+ pos_encoding_type: eq_rel_simple
87
+ primary_vector_chans: 3
88
+ primary_vector_start_idx: 0
89
+ scalar_chans: 1
90
+ scheduler: ReduceLROnPlateau
91
+ seed: 777
92
+ sim_indices:
93
+ - 0
94
+ spatial_slice: null
95
+ task: P3D
96
+ task_dir: ./Results/P3D/ReViT3D/3D|Emb|AOVC|PE|eq_rel_simple|WS2|LoAFalse|PS3|H48|MH192|D5|NH8|Aggcustom_attention|Dec|trilinear/
97
+ test_angles:
98
+ - x_90
99
+ - y_90
100
+ - z_90
101
+ - identity
102
+ - x_180
103
+ - x_270
104
+ - y_180
105
+ - y_270
106
+ - z_180
107
+ - z_270
108
+ - x_90_z_90
109
+ - z_270_x_270
110
+ - x_90_z_270
111
+ - z_90_x_270
112
+ - x_270_z_90
113
+ - z_270_x_90
114
+ - x_270_z_270
115
+ - z_90_x_90
116
+ - x_90_y_90
117
+ - x_90_y_270
118
+ - x_270_y_90
119
+ - x_270_y_270
120
+ - y_90_z_180
121
+ - y_270_z_180
122
+ test_data_path: /mnt/data3/Hao/Solver-Teacher/Dataset/P3D/cropped
123
+ test_steps: 1
124
+ train_data_path: /mnt/data3/Hao/Solver-Teacher/Dataset/P3D/cropped
125
+ tune_metrics: correlation
126
+ unroll_steps: 1
127
+ use_torch_compile: true
128
+ val_split_step: 20
129
+ weight_decay: 0.001
130
+ window_size: 2
131
+ writer_log_dir: logs/train/Results/P3D/ReViT3D/3D|Emb|AOVC|PE|eq_rel_simple|WS2|LoAFalse|PS3|H48|MH192|D5|NH8|Aggcustom_attention|Dec|trilinear/260628-045642-780-07_mstep1_test1_lr0.001_wd0.001_batch1_seed777_drop0.1_embeddim48_depth5_head8_patch3_AdamW_ReduceLROnPlateau_eulerTrue_sigmaNone_NoAug_PeriTrue_pmglobal