Skip to content

Commit d1033d5

Browse files
Merge pull request #308 from wangguan1995/tipc_fix_0515
Tipc fix 0515
2 parents 3d4137b + a798980 commit d1033d5

File tree

4 files changed

+70
-5
lines changed

4 files changed

+70
-5
lines changed

test_tipc/benchmark_train.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export PDSC_DIR=$(cd "$( dirname ${BASH_SOURCE[0]})"; cd ..; pwd)
1717
export TEST_DIR="${PDSC_DIR}"
1818
export TIPC_TEST="ON" # open tipc log in solver.py
1919
export PYTHONPATH=${PDSC_DIR}
20+
BENCHMARK_ROOT="${TEST_DIR}/test_tipc/tools"
2021
source ${TEST_DIR}/test_tipc/common_func.sh
2122

2223
function func_parser_params(){

test_tipc/configs/train_2d_unsteady_continuous/train_2d_unsteady_continuous.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
===========================train_params===========================
22
model_name:cylinder2d_unsteady_train_newapi
3-
python:python3.7
3+
python:python3.10
44
gpu_list:0
55
Global.use_gpu:null
66
Global.auto_cast:fp32
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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

test_tipc/prepare.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,24 @@ export TEST_DIR="${PDSC_DIR}"
44
export TIPC_TEST="ON" # open tipc log in solver.py
55
export PYTHONPATH=${PDSC_DIR}
66

7+
BENCHMARK_ROOT="${TEST_DIR}/test_tipc/tools"
78
echo -e "\n* [TEST_DIR] is now set : \n" ${TEST_DIR} "\n"
89
echo -e "\n* [BENCHMARK_ROOT] is now set : \n" ${BENCHMARK_ROOT} "\n"
910
echo -e "\n* [PYTHONPATH] is now set : \n" ${PYTHONPATH} "\n"
1011

11-
BENCHMARK_ROOT=${TEST_DIR}"/test_tipc/tools"
1212
source ${TEST_DIR}/test_tipc/common_func.sh
1313

14-
# Read parameters from [prepare_2d_unsteady_continuous.txt]
14+
# Read parameters from [/tipc/config/*/*.txt]
1515
PREPARE_PARAM_FILE=$1
1616
dataline=`cat $PREPARE_PARAM_FILE`
1717
lines=(${dataline})
1818
download_dataset=$(func_parser_value "${lines[61]}")
1919
python=$(func_parser_value "${lines[2]}")
2020
export pip=$(func_parser_value "${lines[62]}")
21-
21+
${pip} install --upgrade pip
22+
${pip} install pybind11
2223
${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

0 commit comments

Comments
 (0)