Skip to content

Commit 983d512

Browse files
committed
tipc: fix the keyword of ShiTu model
In benchmark_train mode, the config name is benchmark.txt. So the keyword of ShiTu should be model_name instead of the config name.
1 parent bfa1ac1 commit 983d512

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test_tipc/test_train_inference_python.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -274,15 +274,15 @@ else
274274
# export FLAGS_cudnn_deterministic=True
275275
sleep 5
276276
eval $cmd
277-
if [[ $FILENAME == *GeneralRecognition* ]]; then
277+
if [[ $model_name == *GeneralRecognition* ]]; then
278278
eval "cat ${save_log}/RecModel/train.log >> ${save_log}.log"
279279
else
280280
eval "cat ${save_log}/${model_name}/train.log >> ${save_log}.log"
281281
fi
282282
status_check $? "${cmd}" "${status_log}" "${model_name}" "${save_log}.log"
283283
sleep 5
284284

285-
if [[ $FILENAME == *GeneralRecognition* ]]; then
285+
if [[ $model_name == *GeneralRecognition* ]]; then
286286
set_eval_pretrain=$(func_set_params "${pretrain_model_key}" "${save_log}/RecModel/${train_model_name}")
287287
else
288288
set_eval_pretrain=$(func_set_params "${pretrain_model_key}" "${save_log}/${model_name}/${train_model_name}")
@@ -304,7 +304,7 @@ else
304304
if [ ${run_export} != "null" ]; then
305305
# run export model
306306
save_infer_path="${save_log}"
307-
if [[ $FILENAME == *GeneralRecognition* ]]; then
307+
if [[ $model_name == *GeneralRecognition* ]]; then
308308
set_eval_pretrain=$(func_set_params "${pretrain_model_key}" "${save_log}/RecModel/${train_model_name}")
309309
else
310310
set_export_weight=$(func_set_params "${export_weight}" "${save_log}/${model_name}/${train_model_name}")

0 commit comments

Comments
 (0)