File tree Expand file tree Collapse file tree 4 files changed +70
-5
lines changed
train_2d_unsteady_continuous Expand file tree Collapse file tree 4 files changed +70
-5
lines changed 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
1
+ ===========================train_params===========================
2
+ model_name:euler_beam
3
+ python:python3.10
4
+ gpu_list:0
5
+ Global.use_gpu:null
6
+ null:null
7
+ --epochs
8
+ null:null
9
+ null:null
10
+ null:null
11
+ train_model_name:latest
12
+ train_infer_img_dir:null
13
+ null:null
14
+ ##
15
+ trainer:norm_train
16
+ norm_train:/examples/euler_beam/euler_beam.py
17
+ pact_train:null
18
+ fpgm_train:null
19
+ distill_train:null
20
+ null:null
21
+ null:null
22
+ ##
23
+ ===========================eval_params===========================
24
+ eval:null
25
+ null:null
26
+ ##
27
+ ===========================infer_params===========================
28
+ Global.save_inference_dir:./output/
29
+ Global.checkpoints:
30
+ norm_export:null
31
+ quant_export:null
32
+ fpgm_export:null
33
+ distill_export:null
34
+ export1:null
35
+ export2:null
36
+ inference_dir:null
37
+ train_model:null
38
+ infer_export:tools/export_model.py -c null -o
39
+ infer_quant:False
40
+ inference:tools/infer/predict_det.py
41
+ --use_gpu:True
42
+ --enable_mkldnn:null
43
+ --cpu_threads:null
44
+ --rec_batch_num:1
45
+ --use_tensorrt:null
46
+ --precision:fp32
47
+ --det_model_dir:
48
+ --image_dir:null
49
+ null:null
50
+ --benchmark:True
51
+ null:null
52
+ ===========================train_benchmark_params==========================
53
+ batch_size:1
54
+ fp_items:fp32
55
+ epoch:20
56
+ --profiler_options:batch_range=[1,1];state=GPU;tracer_option=Default;profile_path=model.profile
57
+ flags:FLAGS_eager_delete_tensor_gb=0.0;FLAGS_fraction_of_gpu_memory_to_use=0.98;FLAGS_conv_workspace_size_limit=0
58
+ ===========================prepare_params==========================
59
+ download_dataset:
60
+ pip:pip
Original file line number Diff line number Diff line change @@ -4,20 +4,24 @@ 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} )
18
18
download_dataset=$( func_parser_value " ${lines[61]} " )
19
19
python=$( func_parser_value " ${lines[2]} " )
20
20
export pip=$( func_parser_value " ${lines[62]} " )
21
-
21
+ ${pip} install --upgrade pip
22
+ ${pip} install pybind11
22
23
${pip} install -r requirements.txt
23
- ${python} ${PDSC_DIR}${download_dataset}
24
+
25
+ if [ -n ${download_dataset} ] ; then
26
+ ${python} ${PDSC_DIR}${download_dataset}
27
+ fi
You can’t perform that action at this time.
0 commit comments