File tree Expand file tree Collapse file tree 5 files changed +10
-5
lines changed
configs/train_2d_unsteady_continuous Expand file tree Collapse file tree 5 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 28
28
ppsci .utils .misc .set_random_seed (42 )
29
29
# set training hyper-parameters
30
30
ITERS_PER_EPOCH = 1
31
- EPOCHS = 10000 if not args .epochs else args .epochs
31
+ EPOCHS = 20 if not args .epochs else args .epochs
32
32
# set output directory
33
33
OUTPUT_DIR = "./output/euler_beam" if not args .output_dir else args .output_dir
34
34
# initialize logger
Original file line number Diff line number Diff line change 8
8
scipy
9
9
visualdl
10
10
pyvista == 0.37.0
11
+ pybind11 == 2.9.2
11
12
pysdf
12
13
pyyaml
13
14
scikit-optimize
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ export PDSC_DIR=$(cd "$( dirname ${BASH_SOURCE[0]})"; cd ..; pwd)
17
17
export TEST_DIR=" ${PDSC_DIR} "
18
18
export TIPC_TEST=" ON" # open tipc log in solver.py
19
19
export PYTHONPATH=${PDSC_DIR}
20
+ BENCHMARK_ROOT=" ${TEST_DIR} /test_tipc/tools"
20
21
source ${TEST_DIR} /test_tipc/common_func.sh
21
22
22
23
function func_parser_params(){
Original file line number Diff line number Diff line change 1
1
===========================train_params===========================
2
2
model_name:cylinder2d_unsteady_train_newapi
3
- python:python3.7
3
+ python:python3.10
4
4
gpu_list:0
5
5
Global.use_gpu:null
6
6
Global.auto_cast:fp32
Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ export TEST_DIR="${PDSC_DIR}"
4
4
export TIPC_TEST=" ON" # open tipc log in solver.py
5
5
export PYTHONPATH=${PDSC_DIR}
6
6
7
+ BENCHMARK_ROOT=" ${TEST_DIR} /test_tipc/tools"
7
8
echo -e " \n* [TEST_DIR] is now set : \n" ${TEST_DIR} " \n"
8
9
echo -e " \n* [BENCHMARK_ROOT] is now set : \n" ${BENCHMARK_ROOT} " \n"
9
10
echo -e " \n* [PYTHONPATH] is now set : \n" ${PYTHONPATH} " \n"
10
11
11
- BENCHMARK_ROOT=${TEST_DIR} " /test_tipc/tools"
12
12
source ${TEST_DIR} /test_tipc/common_func.sh
13
13
14
- # Read parameters from [prepare_2d_unsteady_continuous .txt]
14
+ # Read parameters from [/tipc/config/*/* .txt]
15
15
PREPARE_PARAM_FILE=$1
16
16
dataline=` cat $PREPARE_PARAM_FILE `
17
17
lines=(${dataline} )
@@ -20,4 +20,7 @@ python=$(func_parser_value "${lines[2]}")
20
20
export pip=$( func_parser_value " ${lines[62]} " )
21
21
22
22
${pip} install -r requirements.txt
23
- ${python} ${PDSC_DIR}${download_dataset}
23
+
24
+ if [ ! -n ${download_dataset} ] ; then
25
+ ${python} ${PDSC_DIR}${download_dataset}
26
+ fi
You can’t perform that action at this time.
0 commit comments