Skip to content

Commit 5b72753

Browse files
[Refine] Update defaults items to all example configs (#1081)
* update defaults items to all example configs * fix TRAIN.epochs sanity check and fix infer of heat_equation_with_bc and heat_equation"
1 parent 194a593 commit 5b72753

File tree

84 files changed

+860
-747
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+860
-747
lines changed

examples/NLS-MB/conf/NLS-MB_rogue_wave.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1+
defaults:
2+
- ppsci_default
3+
- TRAIN: train_default
4+
- TRAIN/ema: ema_default
5+
- TRAIN/swa: swa_default
6+
- EVAL: eval_default
7+
- INFER: infer_default
8+
- hydra/job/config/override_dirname/exclude_keys: exclude_keys_default
9+
- _self_
10+
111
hydra:
212
run:
313
# dynamic output directory according to running time and override name
414
dir: output_NLS-MB_rogue_wave/${now:%Y-%m-%d}/${now:%H-%M-%S}/${hydra.job.override_dirname}
515
job:
616
name: ${mode} # name of logfile
717
chdir: false # keep current working directory unchanged
8-
config:
9-
override_dirname:
10-
exclude_keys:
11-
- TRAIN.checkpoint_path
12-
- TRAIN.pretrained_model_path
13-
- EVAL.pretrained_model_path
14-
- mode
15-
- output_dir
16-
- log_freq
1718
callbacks:
1819
init_callback:
1920
_target_: ppsci.utils.callbacks.InitCallback

examples/NLS-MB/conf/NLS-MB_soliton.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1+
defaults:
2+
- ppsci_default
3+
- TRAIN: train_default
4+
- TRAIN/ema: ema_default
5+
- TRAIN/swa: swa_default
6+
- EVAL: eval_default
7+
- INFER: infer_default
8+
- hydra/job/config/override_dirname/exclude_keys: exclude_keys_default
9+
- _self_
10+
111
hydra:
212
run:
313
# dynamic output directory according to running time and override name
414
dir: output_NLS-MB_soliton/${now:%Y-%m-%d}/${now:%H-%M-%S}/${hydra.job.override_dirname}
515
job:
616
name: ${mode} # name of logfile
717
chdir: false # keep current working directory unchanged
8-
config:
9-
override_dirname:
10-
exclude_keys:
11-
- TRAIN.checkpoint_path
12-
- TRAIN.pretrained_model_path
13-
- EVAL.pretrained_model_path
14-
- mode
15-
- output_dir
16-
- log_freq
1718
callbacks:
1819
init_callback:
1920
_target_: ppsci.utils.callbacks.InitCallback

examples/RegAE/conf/RegAE.yaml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
defaults:
2+
- ppsci_default
3+
- TRAIN: train_default
4+
- TRAIN/ema: ema_default
5+
- TRAIN/swa: swa_default
6+
- EVAL: eval_default
7+
- INFER: infer_default
8+
- hydra/job/config/override_dirname/exclude_keys: exclude_keys_default
9+
- _self_
10+
111
hydra:
212
run:
313
# dynamic output directory according to running time and override name
@@ -6,14 +16,7 @@ hydra:
616
name: ${mode} # name of logfile
717
chdir: false # keep current working directory unchanged
818
config:
9-
override_dirname:
10-
exclude_keys:
11-
- TRAIN.checkpoint_path
12-
- TRAIN.pretrained_model_path
13-
- EVAL.pretrained_model_path
14-
- mode
15-
- output_dir
16-
- log_freq
19+
1720
sweep:
1821
# output directory for multirun
1922
dir: ${hydra.run.dir}
@@ -28,7 +31,7 @@ VALID_FILE_PATH: data.npz
2831

2932
# model settings
3033
MODEL:
31-
input_keys: ["p_train",]
34+
input_keys: ["p_train"]
3235
output_keys: ["mu", "log_sigma", "decoder_z"]
3336
input_dim: 10000
3437
latent_dim: 100

examples/allen_cahn/conf/allen_cahn.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1+
defaults:
2+
- ppsci_default
3+
- TRAIN: train_default
4+
- TRAIN/ema: ema_default
5+
- TRAIN/swa: swa_default
6+
- EVAL: eval_default
7+
- INFER: infer_default
8+
- hydra/job/config/override_dirname/exclude_keys: exclude_keys_default
9+
- _self_
10+
111
hydra:
212
run:
313
# dynamic output directory according to running time and override name
414
dir: outputs_allen_cahn_plain/${now:%Y-%m-%d}/${now:%H-%M-%S}/${hydra.job.override_dirname}
515
job:
616
name: ${mode} # name of logfile
717
chdir: false # keep current working directory unchanged
8-
config:
9-
override_dirname:
10-
exclude_keys:
11-
- TRAIN.checkpoint_path
12-
- TRAIN.pretrained_model_path
13-
- EVAL.pretrained_model_path
14-
- INFER.pretrained_model_path
15-
- mode
16-
- output_dir
17-
- log_freq
1818
callbacks:
1919
init_callback:
2020
_target_: ppsci.utils.callbacks.InitCallback

examples/allen_cahn/conf/allen_cahn_causal_fourier_rwf.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1+
defaults:
2+
- ppsci_default
3+
- TRAIN: train_default
4+
- TRAIN/ema: ema_default
5+
- TRAIN/swa: swa_default
6+
- EVAL: eval_default
7+
- INFER: infer_default
8+
- hydra/job/config/override_dirname/exclude_keys: exclude_keys_default
9+
- _self_
10+
111
hydra:
212
run:
313
# dynamic output directory according to running time and override name
414
dir: outputs_allen_cahn_causal_fourier_rwf/${now:%Y-%m-%d}/${now:%H-%M-%S}/${hydra.job.override_dirname}
515
job:
616
name: ${mode} # name of logfile
717
chdir: false # keep current working directory unchanged
8-
config:
9-
override_dirname:
10-
exclude_keys:
11-
- TRAIN.checkpoint_path
12-
- TRAIN.pretrained_model_path
13-
- EVAL.pretrained_model_path
14-
- INFER.pretrained_model_path
15-
- mode
16-
- output_dir
17-
- log_freq
1818
callbacks:
1919
init_callback:
2020
_target_: ppsci.utils.callbacks.InitCallback

examples/allen_cahn/conf/allen_cahn_defalut_ntk.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1+
defaults:
2+
- ppsci_default
3+
- TRAIN: train_default
4+
- TRAIN/ema: ema_default
5+
- TRAIN/swa: swa_default
6+
- EVAL: eval_default
7+
- INFER: infer_default
8+
- hydra/job/config/override_dirname/exclude_keys: exclude_keys_default
9+
- _self_
10+
111
hydra:
212
run:
313
# dynamic output directory according to running time and override name
414
dir: outputs_allen_cahn_defalut_ntk/${now:%Y-%m-%d}/${now:%H-%M-%S}/${hydra.job.override_dirname}
515
job:
616
name: ${mode} # name of logfile
717
chdir: false # keep current working direcotry unchaned
8-
config:
9-
override_dirname:
10-
exclude_keys:
11-
- TRAIN.checkpoint_path
12-
- TRAIN.pretrained_model_path
13-
- EVAL.pretrained_model_path
14-
- INFER.pretrained_model_path
15-
- mode
16-
- output_dir
17-
- log_freq
1818
callbacks:
1919
init_callback:
2020
_target_: ppsci.utils.callbacks.InitCallback

examples/allen_cahn/conf/allen_cahn_default.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1+
defaults:
2+
- ppsci_default
3+
- TRAIN: train_default
4+
- TRAIN/ema: ema_default
5+
- TRAIN/swa: swa_default
6+
- EVAL: eval_default
7+
- INFER: infer_default
8+
- hydra/job/config/override_dirname/exclude_keys: exclude_keys_default
9+
- _self_
10+
111
hydra:
212
run:
313
# dynamic output directory according to running time and override name
414
dir: outputs_allen_cahn_default/${now:%Y-%m-%d}/${now:%H-%M-%S}/${hydra.job.override_dirname}
515
job:
616
name: ${mode} # name of logfile
717
chdir: false # keep current working directory unchanged
8-
config:
9-
override_dirname:
10-
exclude_keys:
11-
- TRAIN.checkpoint_path
12-
- TRAIN.pretrained_model_path
13-
- EVAL.pretrained_model_path
14-
- INFER.pretrained_model_path
15-
- mode
16-
- output_dir
17-
- log_freq
1818
callbacks:
1919
init_callback:
2020
_target_: ppsci.utils.callbacks.InitCallback

examples/allen_cahn/conf/allen_cahn_sota.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1+
defaults:
2+
- ppsci_default
3+
- TRAIN: train_default
4+
- TRAIN/ema: ema_default
5+
- TRAIN/swa: swa_default
6+
- EVAL: eval_default
7+
- INFER: infer_default
8+
- hydra/job/config/override_dirname/exclude_keys: exclude_keys_default
9+
- _self_
10+
111
hydra:
212
run:
313
# dynamic output directory according to running time and override name
414
dir: outputs_allen_cahn_sota/${now:%Y-%m-%d}/${now:%H-%M-%S}/${hydra.job.override_dirname}
515
job:
616
name: ${mode} # name of logfile
717
chdir: false # keep current working direcotry unchaned
8-
config:
9-
override_dirname:
10-
exclude_keys:
11-
- TRAIN.checkpoint_path
12-
- TRAIN.pretrained_model_path
13-
- EVAL.pretrained_model_path
14-
- INFER.pretrained_model_path
15-
- mode
16-
- output_dir
17-
- log_freq
1818
callbacks:
1919
init_callback:
2020
_target_: ppsci.utils.callbacks.InitCallback

examples/amgnet/conf/amgnet_airfoil.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1+
defaults:
2+
- ppsci_default
3+
- TRAIN: train_default
4+
- TRAIN/ema: ema_default
5+
- TRAIN/swa: swa_default
6+
- EVAL: eval_default
7+
- INFER: infer_default
8+
- hydra/job/config/override_dirname/exclude_keys: exclude_keys_default
9+
- _self_
10+
111
hydra:
212
run:
313
# dynamic output directory according to running time and override name
414
dir: outputs_amgnet_airfoil/${now:%Y-%m-%d}/${now:%H-%M-%S}/${hydra.job.override_dirname}
515
job:
616
name: ${mode} # name of logfile
717
chdir: false # keep current working directory unchanged
8-
config:
9-
override_dirname:
10-
exclude_keys:
11-
- TRAIN.checkpoint_path
12-
- TRAIN.pretrained_model_path
13-
- EVAL.pretrained_model_path
14-
- mode
15-
- output_dir
16-
- log_freq
1718
sweep:
1819
# output directory for multirun
1920
dir: ${hydra.run.dir}

examples/amgnet/conf/amgnet_cylinder.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1+
defaults:
2+
- ppsci_default
3+
- TRAIN: train_default
4+
- TRAIN/ema: ema_default
5+
- TRAIN/swa: swa_default
6+
- EVAL: eval_default
7+
- INFER: infer_default
8+
- hydra/job/config/override_dirname/exclude_keys: exclude_keys_default
9+
- _self_
10+
111
hydra:
212
run:
313
# dynamic output directory according to running time and override name
414
dir: outputs_amgnet_cylinder/${now:%Y-%m-%d}/${now:%H-%M-%S}/${hydra.job.override_dirname}
515
job:
616
name: ${mode} # name of logfile
717
chdir: false # keep current working directory unchanged
8-
config:
9-
override_dirname:
10-
exclude_keys:
11-
- TRAIN.checkpoint_path
12-
- TRAIN.pretrained_model_path
13-
- EVAL.pretrained_model_path
14-
- mode
15-
- output_dir
16-
- log_freq
1718
sweep:
1819
# output directory for multirun
1920
dir: ${hydra.run.dir}

0 commit comments

Comments
 (0)