forked from PaddlePaddle/PaddleScience
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
【hydra No.18】Adapt DeepCFD to hydra (PaddlePaddle#583)
* adapt DeepCFD to hydra * fix * fix * fix * fix
- Loading branch information
1 parent
15cb70f
commit ae693ec
Showing
3 changed files
with
243 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
hydra: | ||
run: | ||
# dynamic output directory according to running time and override name | ||
dir: outputs_deepcfd/${now:%Y-%m-%d}/${now:%H-%M-%S}/${hydra.job.override_dirname} | ||
job: | ||
name: ${mode} # name of logfile | ||
chdir: false # keep current working direcotry unchaned | ||
config: | ||
override_dirname: | ||
exclude_keys: | ||
- TRAIN.checkpoint_path | ||
- TRAIN.pretrained_model_path | ||
- EVAL.pretrained_model_path | ||
- mode | ||
- output_dir | ||
- log_freq | ||
sweep: | ||
# output directory for multirun | ||
dir: ${hydra.run.dir} | ||
subdir: ./ | ||
|
||
# general settings | ||
mode: train # running mode: train/eval | ||
seed: 2023 | ||
output_dir: ${hydra:run.dir} | ||
log_freq: 20 | ||
|
||
# set data file path | ||
DATAX_PATH: ./datasets/dataX.pkl | ||
DATAY_PATH: ./datasets/dataY.pkl | ||
SLIPT_RATIO: 0.7 # slipt dataset to train dataset and test datatset | ||
SAMPLE_SIZE: 981 # the shape of dataX and dataY is [SAMPLE_SIZE, CHANNEL_SIZE, X_SIZE, Y_SIZE] | ||
CHANNEL_SIZE: 3 | ||
X_SIZE: 172 | ||
Y_SIZE: 79 | ||
|
||
# model settings | ||
MODEL: | ||
input_key: "input" | ||
output_key: "output" | ||
in_channel: 3 | ||
out_channel: 3 | ||
kernel_size: 5 | ||
filters: [8, 16, 32, 32] | ||
weight_norm: false | ||
batch_norm: false | ||
|
||
# training settings | ||
TRAIN: | ||
epochs: 1000 | ||
learning_rate: 0.001 | ||
weight_decay: 0.005 | ||
eval_during_train: true | ||
eval_freq: 50 | ||
batch_size: 64 | ||
pretrained_model_path: null | ||
checkpoint_path: null | ||
|
||
EVAL: | ||
pretrained_model_path: null | ||
eval_with_no_grad: true | ||
batch_size: 8 |
Oops, something went wrong.