fix table pact
parent
d10d84323f
commit
a9b46c915d
|
@ -52,7 +52,7 @@ if [ ${MODE} = "lite_train_lite_infer" ];then
|
|||
wget -nc -P ./pretrain_models/ https://paddleocr.bj.bcebos.com/PP-OCRv3/chinese/ch_PP-OCRv3_det_distill_train.tar --no-check-certificate
|
||||
cd ./pretrain_models/ && tar xf ch_PP-OCRv3_det_distill_train.tar && cd ../
|
||||
fi
|
||||
if [ ${model_name} == "en_table_structure" ];then
|
||||
if [ ${model_name} == "en_table_structure" ] || [ ${model_name} == "en_table_structure_PACT" ];then
|
||||
wget -nc -P ./pretrain_models/ https://paddleocr.bj.bcebos.com/dygraph_v2.1/table/en_ppocr_mobile_v2.0_table_structure_train.tar --no-check-certificate
|
||||
cd ./pretrain_models/ && tar xf en_ppocr_mobile_v2.0_table_structure_train.tar && cd ../
|
||||
wget -nc -P ./inference/ https://paddleocr.bj.bcebos.com/dygraph_v2.0/table/en_ppocr_mobile_v2.0_table_det_infer.tar --no-check-certificate
|
||||
|
|
|
@ -139,7 +139,7 @@ if [ ${MODE} = "whole_infer" ]; then
|
|||
save_infer_dir="${infer_model}_klquant"
|
||||
set_export_weight=$(func_set_params "${export_weight}" "${infer_model}")
|
||||
set_save_infer_key=$(func_set_params "${save_infer_key}" "${save_infer_dir}")
|
||||
export_log_path="${LOG_PATH}_export_${Count}.log"
|
||||
export_log_path="${LOG_PATH}/${MODE}_export_${Count}.log"
|
||||
export_cmd="${python} ${infer_run_exports[Count]} ${set_export_weight} ${set_save_infer_key} > ${export_log_path} 2>&1 "
|
||||
echo ${infer_run_exports[Count]}
|
||||
echo $export_cmd
|
||||
|
|
Loading…
Reference in New Issue