refine status check
This commit is contained in:
parent
58437e6448
commit
4a179f5fc0
|
@ -29,7 +29,7 @@ gpu_precision_list=$(func_parser "${lines[11]}")
|
||||||
|
|
||||||
|
|
||||||
function status_check(){
|
function status_check(){
|
||||||
last_status=$1 # 上个阶段的退出码
|
last_status=$1 # the exit code
|
||||||
run_model=$2
|
run_model=$2
|
||||||
run_command=$3
|
run_command=$3
|
||||||
save_log=$4
|
save_log=$4
|
||||||
|
|
|
@ -57,7 +57,7 @@ gpu_precision_list=$(func_parser "${lines[11]}")
|
||||||
img_dir="./train_data/icdar2015/text_localization/ch4_test_images/"
|
img_dir="./train_data/icdar2015/text_localization/ch4_test_images/"
|
||||||
|
|
||||||
function status_check(){
|
function status_check(){
|
||||||
last_status=$1 # 上个阶段的退出码
|
last_status=$1 # the exit code
|
||||||
run_model=$2
|
run_model=$2
|
||||||
run_command=$3
|
run_command=$3
|
||||||
save_log=$4
|
save_log=$4
|
||||||
|
@ -92,7 +92,7 @@ for train_model in ${train_model_list[*]}; do
|
||||||
else
|
else
|
||||||
launch="-m paddle.distributed.launch --log_dir=./debug/ --gpus ${gpu}"
|
launch="-m paddle.distributed.launch --log_dir=./debug/ --gpus ${gpu}"
|
||||||
fi
|
fi
|
||||||
# echo "model_name: ${model_name} yml_file: ${yml_file} launch: ${launch} gpu: ${gpu}"
|
|
||||||
for auto_cast in ${auto_cast_list[*]}; do
|
for auto_cast in ${auto_cast_list[*]}; do
|
||||||
for slim_trainer in ${slim_trainer_list[*]}; do
|
for slim_trainer in ${slim_trainer_list[*]}; do
|
||||||
if [ ${slim_trainer} = "norm" ]; then
|
if [ ${slim_trainer} = "norm" ]; then
|
||||||
|
|
Loading…
Reference in New Issue