未验证 提交 3f215d87 编写于 作者: W Walter 提交者: GitHub

Merge pull request #1555 from RainFrost1/batch_size

change large model batch_size for tipc
...@@ -6,7 +6,7 @@ gpu_list:0|0,1 ...@@ -6,7 +6,7 @@ gpu_list:0|0,1
-o Global.auto_cast:null -o Global.auto_cast:null
-o Global.epochs:lite_train_lite_infer=2|whole_train_whole_infer=120 -o Global.epochs:lite_train_lite_infer=2|whole_train_whole_infer=120
-o Global.output_dir:./output/ -o Global.output_dir:./output/
-o DataLoader.Train.sampler.batch_size:8 -o DataLoader.Train.sampler.batch_size:2
-o Global.pretrained_model:null -o Global.pretrained_model:null
train_model_name:latest train_model_name:latest
train_infer_img_dir:./dataset/ILSVRC2012/val train_infer_img_dir:./dataset/ILSVRC2012/val
......
...@@ -6,7 +6,7 @@ gpu_list:0|0,1 ...@@ -6,7 +6,7 @@ gpu_list:0|0,1
-o Global.auto_cast:null -o Global.auto_cast:null
-o Global.epochs:lite_train_lite_infer=2|whole_train_whole_infer=120 -o Global.epochs:lite_train_lite_infer=2|whole_train_whole_infer=120
-o Global.output_dir:./output/ -o Global.output_dir:./output/
-o DataLoader.Train.sampler.batch_size:8 -o DataLoader.Train.sampler.batch_size:2
-o Global.pretrained_model:null -o Global.pretrained_model:null
train_model_name:latest train_model_name:latest
train_infer_img_dir:./dataset/ILSVRC2012/val train_infer_img_dir:./dataset/ILSVRC2012/val
......
...@@ -6,7 +6,7 @@ gpu_list:0|0,1 ...@@ -6,7 +6,7 @@ gpu_list:0|0,1
-o Global.auto_cast:null -o Global.auto_cast:null
-o Global.epochs:lite_train_lite_infer=2|whole_train_whole_infer=120 -o Global.epochs:lite_train_lite_infer=2|whole_train_whole_infer=120
-o Global.output_dir:./output/ -o Global.output_dir:./output/
-o DataLoader.Train.sampler.batch_size:8 -o DataLoader.Train.sampler.batch_size:2
-o Global.pretrained_model:null -o Global.pretrained_model:null
train_model_name:latest train_model_name:latest
train_infer_img_dir:./dataset/ILSVRC2012/val train_infer_img_dir:./dataset/ILSVRC2012/val
......
...@@ -6,7 +6,7 @@ gpu_list:0|0,1 ...@@ -6,7 +6,7 @@ gpu_list:0|0,1
-o Global.auto_cast:null -o Global.auto_cast:null
-o Global.epochs:lite_train_lite_infer=2|whole_train_whole_infer=120 -o Global.epochs:lite_train_lite_infer=2|whole_train_whole_infer=120
-o Global.output_dir:./output/ -o Global.output_dir:./output/
-o DataLoader.Train.sampler.batch_size:8 -o DataLoader.Train.sampler.batch_size:2
-o Global.pretrained_model:null -o Global.pretrained_model:null
train_model_name:latest train_model_name:latest
train_infer_img_dir:./dataset/ILSVRC2012/val train_infer_img_dir:./dataset/ILSVRC2012/val
......
...@@ -6,7 +6,7 @@ gpu_list:0|0,1 ...@@ -6,7 +6,7 @@ gpu_list:0|0,1
-o Global.auto_cast:null -o Global.auto_cast:null
-o Global.epochs:lite_train_lite_infer=2|whole_train_whole_infer=120 -o Global.epochs:lite_train_lite_infer=2|whole_train_whole_infer=120
-o Global.output_dir:./output/ -o Global.output_dir:./output/
-o DataLoader.Train.sampler.batch_size:8 -o DataLoader.Train.sampler.batch_size:2
-o Global.pretrained_model:null -o Global.pretrained_model:null
train_model_name:latest train_model_name:latest
train_infer_img_dir:./dataset/ILSVRC2012/val train_infer_img_dir:./dataset/ILSVRC2012/val
......
...@@ -6,7 +6,7 @@ gpu_list:0|0,1 ...@@ -6,7 +6,7 @@ gpu_list:0|0,1
-o Global.auto_cast:null -o Global.auto_cast:null
-o Global.epochs:lite_train_lite_infer=2|whole_train_whole_infer=120 -o Global.epochs:lite_train_lite_infer=2|whole_train_whole_infer=120
-o Global.output_dir:./output/ -o Global.output_dir:./output/
-o DataLoader.Train.sampler.batch_size:8 -o DataLoader.Train.sampler.batch_size:2
-o Global.pretrained_model:null -o Global.pretrained_model:null
train_model_name:latest train_model_name:latest
train_infer_img_dir:./dataset/ILSVRC2012/val train_infer_img_dir:./dataset/ILSVRC2012/val
......
...@@ -146,7 +146,6 @@ function func_inference(){ ...@@ -146,7 +146,6 @@ function func_inference(){
last_status=${PIPESTATUS[0]} last_status=${PIPESTATUS[0]}
eval "cat ${_save_log_path}" eval "cat ${_save_log_path}"
status_check $last_status "${command}" "../${status_log}" status_check $last_status "${command}" "../${status_log}"
done done
done done
done done
...@@ -289,8 +288,10 @@ else ...@@ -289,8 +288,10 @@ else
# run train # run train
eval "unset CUDA_VISIBLE_DEVICES" eval "unset CUDA_VISIBLE_DEVICES"
export FLAGS_cudnn_deterministic=True export FLAGS_cudnn_deterministic=True
sleep 5
eval $cmd eval $cmd
status_check $? "${cmd}" "${status_log}" status_check $? "${cmd}" "${status_log}"
sleep 5
if [[ $FILENAME == *GeneralRecognition* ]]; then if [[ $FILENAME == *GeneralRecognition* ]]; then
set_eval_pretrain=$(func_set_params "${pretrain_model_key}" "${save_log}/RecModel/${train_model_name}") set_eval_pretrain=$(func_set_params "${pretrain_model_key}" "${save_log}/RecModel/${train_model_name}")
...@@ -307,6 +308,7 @@ else ...@@ -307,6 +308,7 @@ else
eval_cmd="${python} ${eval_py} ${set_eval_pretrain} ${set_use_gpu} ${set_eval_params1}" eval_cmd="${python} ${eval_py} ${set_eval_pretrain} ${set_use_gpu} ${set_eval_params1}"
eval $eval_cmd eval $eval_cmd
status_check $? "${eval_cmd}" "${status_log}" status_check $? "${eval_cmd}" "${status_log}"
sleep 5
fi fi
# run export model # run export model
if [ ${run_export} != "null" ]; then if [ ${run_export} != "null" ]; then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册