Add model configuration
Browse files- config.json +82 -0
config.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"MeshGraphNet"
|
| 4 |
+
],
|
| 5 |
+
"framework": "pytorch",
|
| 6 |
+
"model_name": "MeshGraphNet",
|
| 7 |
+
"model_type": "meshgraphnet",
|
| 8 |
+
"source_config": "config/config.yaml",
|
| 9 |
+
"paths": {
|
| 10 |
+
"data_dir": "data/cylinder_flow",
|
| 11 |
+
"fake_data_path": "data/cylinder_flow/fake_cylinder_flow.pt",
|
| 12 |
+
"checkpoint_dir": "weight/checkpoints",
|
| 13 |
+
"result_dir": "results"
|
| 14 |
+
},
|
| 15 |
+
"datapipe": {
|
| 16 |
+
"source": {
|
| 17 |
+
"data_dir": "data/cylinder_flow",
|
| 18 |
+
"stats_dir": "data/cylinder_flow/stats",
|
| 19 |
+
"fake_data": true,
|
| 20 |
+
"fake_data_path": "data/cylinder_flow/fake_cylinder_flow.pt"
|
| 21 |
+
},
|
| 22 |
+
"verbose": true,
|
| 23 |
+
"data": {
|
| 24 |
+
"train_samples": 4,
|
| 25 |
+
"train_steps": 5,
|
| 26 |
+
"val_samples": 2,
|
| 27 |
+
"val_steps": 5,
|
| 28 |
+
"test_samples": 2,
|
| 29 |
+
"test_steps": 5,
|
| 30 |
+
"noise_std": 0.0
|
| 31 |
+
},
|
| 32 |
+
"dataloader": {
|
| 33 |
+
"batch_size": 1,
|
| 34 |
+
"num_workers": 0
|
| 35 |
+
}
|
| 36 |
+
},
|
| 37 |
+
"model": {
|
| 38 |
+
"name": "MeshGraphNet",
|
| 39 |
+
"specific_params": {
|
| 40 |
+
"MeshGraphNet": {
|
| 41 |
+
"num_input_features": 6,
|
| 42 |
+
"num_edge_features": 3,
|
| 43 |
+
"num_output_features": 3,
|
| 44 |
+
"processor_size": 2,
|
| 45 |
+
"hidden_dim_processor": 32,
|
| 46 |
+
"num_layers_node_processor": 2,
|
| 47 |
+
"num_layers_edge_processor": 2,
|
| 48 |
+
"hidden_dim_node_encoder": 32,
|
| 49 |
+
"hidden_dim_edge_encoder": 32,
|
| 50 |
+
"hidden_dim_node_decoder": 32,
|
| 51 |
+
"do_concat_trick": false,
|
| 52 |
+
"num_processor_checkpoint_segments": 0,
|
| 53 |
+
"recompute_activation": false
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
},
|
| 57 |
+
"training": {
|
| 58 |
+
"device": "cpu",
|
| 59 |
+
"max_epoch": 1,
|
| 60 |
+
"lr": 0.0001,
|
| 61 |
+
"lr_decay_rate": 0.999,
|
| 62 |
+
"amp": false,
|
| 63 |
+
"jit": false,
|
| 64 |
+
"checkpoint_dir": "weight/checkpoints",
|
| 65 |
+
"loss_criterion": "MSE",
|
| 66 |
+
"patience": 10,
|
| 67 |
+
"log_interval": 1,
|
| 68 |
+
"gpuid": 0
|
| 69 |
+
},
|
| 70 |
+
"inference": {
|
| 71 |
+
"device": "cpu",
|
| 72 |
+
"checkpoint_dir": "weight/checkpoints",
|
| 73 |
+
"output_path": "results/inference_results.npz",
|
| 74 |
+
"viz_vars": [
|
| 75 |
+
"u",
|
| 76 |
+
"v",
|
| 77 |
+
"p"
|
| 78 |
+
],
|
| 79 |
+
"frame_skip": 1,
|
| 80 |
+
"frame_interval": 1
|
| 81 |
+
}
|
| 82 |
+
}
|