...
 
Commits (2)
    https://gitcode.net/paddlepaddle/PaddleOCR/-/commit/a288a3aac3088ced25026124b08112d905b3a09f fix det_v3 (#10180) 2023-06-16T10:16:32+08:00 Zhang Ting zhangting_2017@163.com https://gitcode.net/paddlepaddle/PaddleOCR/-/commit/45848fda1966ea9bb9d9d7d4a272107442d8cb2d 【benchmark】fix script for Python3.10 (#10173) 2023-06-16T10:30:47+08:00 gmm 38800877+mmglove@users.noreply.github.com * fix profile * fix python3.10
......@@ -18,6 +18,7 @@ Global:
save_res_path: ./checkpoints/det_db/predicts_db.txt
distributed: true
d2s_train_image_shape: [3, -1, -1]
amp_dtype: bfloat16
Architecture:
name: DistillationModel
......@@ -222,4 +223,4 @@ Eval:
shuffle: False
drop_last: False
batch_size_per_card: 1 # must be 1
num_workers: 2
\ No newline at end of file
num_workers: 2
......@@ -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
......