fix cv2 req (#7365)
parent
18e80f9b02
commit
71c9a94717
|
@ -108,6 +108,7 @@ if [ ${MODE} = "benchmark_train" ];then
|
||||||
fi
|
fi
|
||||||
if [ ${model_name} == "layoutxlm_ser" ] || [ ${model_name} == "vi_layoutxlm_ser" ]; then
|
if [ ${model_name} == "layoutxlm_ser" ] || [ ${model_name} == "vi_layoutxlm_ser" ]; then
|
||||||
pip install -r ppstructure/kie/requirements.txt
|
pip install -r ppstructure/kie/requirements.txt
|
||||||
|
pip install opencv-python -U
|
||||||
wget -nc -P ./train_data/ https://paddleocr.bj.bcebos.com/ppstructure/dataset/XFUND.tar --no-check-certificate
|
wget -nc -P ./train_data/ https://paddleocr.bj.bcebos.com/ppstructure/dataset/XFUND.tar --no-check-certificate
|
||||||
cd ./train_data/ && tar xf XFUND.tar
|
cd ./train_data/ && tar xf XFUND.tar
|
||||||
# expand gt.txt 10 times
|
# expand gt.txt 10 times
|
||||||
|
@ -230,6 +231,7 @@ if [ ${MODE} = "lite_train_lite_infer" ];then
|
||||||
fi
|
fi
|
||||||
if [ ${model_name} == "layoutxlm_ser" ] || [ ${model_name} == "vi_layoutxlm_ser" ]; then
|
if [ ${model_name} == "layoutxlm_ser" ] || [ ${model_name} == "vi_layoutxlm_ser" ]; then
|
||||||
pip install -r ppstructure/kie/requirements.txt
|
pip install -r ppstructure/kie/requirements.txt
|
||||||
|
pip install opencv-python -U
|
||||||
wget -nc -P ./train_data/ https://paddleocr.bj.bcebos.com/ppstructure/dataset/XFUND.tar --no-check-certificate
|
wget -nc -P ./train_data/ https://paddleocr.bj.bcebos.com/ppstructure/dataset/XFUND.tar --no-check-certificate
|
||||||
cd ./train_data/ && tar xf XFUND.tar
|
cd ./train_data/ && tar xf XFUND.tar
|
||||||
cd ../
|
cd ../
|
||||||
|
|
Loading…
Reference in New Issue