Skip to content

Commit ca27d79

Browse files
authored
Merge pull request #7756 from WenmuZhou/tipc_2
[TIPC] fix slanet and layoutxlm ser fleet train error
2 parents 79442b4 + 4052566 commit ca27d79

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

test_tipc/configs/layoutxlm_ser/train_linux_gpu_fleet_normal_infer_python_linux_gpu_cpu.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ train_infer_img_dir:ppstructure/docs/kie/input/zh_val_42.jpg
1313
null:null
1414
##
1515
trainer:norm_train
16-
norm_train:tools/train.py -c test_tipc/configs/layoutxlm_ser/ser_layoutxlm_xfund_zh.yml
16+
norm_train:tools/train.py -c test_tipc/configs/layoutxlm_ser/ser_layoutxlm_xfund_zh.yml -o
1717
pact_train:null
1818
fpgm_train:null
1919
distill_train:null

test_tipc/configs/slanet/train_linux_gpu_fleet_normal_infer_python_linux_gpu_cpu.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ train_infer_img_dir:./ppstructure/docs/table/table.jpg
1313
null:null
1414
##
1515
trainer:norm_train
16-
norm_train:tools/train.py -c test_tipc/configs/slanet/SLANet.yml
16+
norm_train:tools/train.py -c test_tipc/configs/slanet/SLANet.yml -o
1717
pact_train:null
1818
fpgm_train:null
1919
distill_train:null

test_tipc/prepare.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,10 +700,18 @@ if [ ${MODE} = "cpp_infer" ];then
700700
wget -nc -P ./inference https://paddleocr.bj.bcebos.com/PP-OCRv3/chinese/ch_PP-OCRv3_rec_infer.tar --no-check-certificate
701701
cd ./inference && tar xf ch_PP-OCRv3_det_infer.tar && tar xf ch_PP-OCRv3_rec_infer.tar && tar xf ch_det_data_50.tar && cd ../
702702
elif [[ ${model_name} =~ "en_table_structure" ]];then
703-
wget -nc -P ./inference/ https://paddleocr.bj.bcebos.com/dygraph_v2.0/table/en_ppocr_mobile_v2.0_table_structure_infer.tar --no-check-certificate
704703
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
705704
wget -nc -P ./inference/ https://paddleocr.bj.bcebos.com/dygraph_v2.0/table/en_ppocr_mobile_v2.0_table_rec_infer.tar --no-check-certificate
706-
cd ./inference/ && tar xf en_ppocr_mobile_v2.0_table_structure_infer.tar && tar xf en_ppocr_mobile_v2.0_table_det_infer.tar && tar xf en_ppocr_mobile_v2.0_table_rec_infer.tar && cd ../
705+
706+
cd ./inference/ && tar xf en_ppocr_mobile_v2.0_table_det_infer.tar && tar xf en_ppocr_mobile_v2.0_table_rec_infer.tar
707+
if [ ${model_name} == "en_table_structure" ]; then
708+
wget -nc https://paddleocr.bj.bcebos.com/dygraph_v2.0/table/en_ppocr_mobile_v2.0_table_structure_infer.tar --no-check-certificate
709+
tar xf en_ppocr_mobile_v2.0_table_structure_infer.tar
710+
elif [ ${model_name} == "en_table_structure_PACT" ]; then
711+
wget -nc https://paddleocr.bj.bcebos.com/dygraph_v2.0/table/en_ppocr_mobile_v2.0_table_structure_slim_infer.tar --no-check-certificate
712+
tar xf en_ppocr_mobile_v2.0_table_structure_slim_infer.tar
713+
fi
714+
cd ../
707715
elif [[ ${model_name} =~ "slanet" ]];then
708716
wget -nc -P ./inference/ https://paddleocr.bj.bcebos.com/ppstructure/models/slanet/ch_ppstructure_mobile_v2.0_SLANet_infer.tar --no-check-certificate
709717
wget -nc -P ./inference/ https://paddleocr.bj.bcebos.com/PP-OCRv3/chinese/ch_PP-OCRv3_det_infer.tar --no-check-certificate

0 commit comments

Comments
 (0)