mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-06-26 21:24:27 +00:00
【benchmark】fix script for Python3.10 (#10173)
* fix profile * fix python3.10
This commit is contained in:
parent
a288a3aac3
commit
45848fda19
@ -96,7 +96,7 @@ model_name=$(func_parser_value "${lines[1]}")
|
||||
python_name=$(func_parser_value "${lines[2]}")
|
||||
|
||||
# set env
|
||||
python=${python_name}
|
||||
python=python
|
||||
export str_tmp=$(echo `pip list|grep paddlepaddle-gpu|awk -F ' ' '{print $2}'`)
|
||||
export frame_version=${str_tmp%%.post*}
|
||||
export frame_commit=$(echo `${python} -c "import paddle;print(paddle.version.commit)"`)
|
||||
|
@ -23,7 +23,7 @@ trainer_list=$(func_parser_value "${lines[14]}")
|
||||
if [ ${MODE} = "benchmark_train" ];then
|
||||
python_name_list=$(func_parser_value "${lines[2]}")
|
||||
array=(${python_name_list})
|
||||
python_name=${array[0]}
|
||||
python_name=python
|
||||
${python_name} -m pip install -r requirements.txt
|
||||
if [[ ${model_name} =~ "ch_ppocr_mobile_v2_0_det" || ${model_name} =~ "det_mv3_db_v2_0" ]];then
|
||||
wget -nc -P ./pretrain_models/ https://paddleocr.bj.bcebos.com/pretrained/MobileNetV3_large_x0_5_pretrained.pdparams --no-check-certificate
|
||||
|
Loading…
x
Reference in New Issue
Block a user