Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
98046bb1
Unverified
Commit
98046bb1
authored
Oct 15, 2021
by
MissPenguin
Committed by
GitHub
Oct 15, 2021
Browse files
Merge pull request #4351 from MissPenguin/dygraph
fix doc
parents
6fc27265
b0b8a9e8
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
3 deletions
+8
-3
tests/docs/test_cpp.md
tests/docs/test_cpp.md
+1
-1
tests/docs/test_python.md
tests/docs/test_python.md
+6
-1
tests/results/cpp_ppocr_det_mobile_results_fp16.txt
tests/results/cpp_ppocr_det_mobile_results_fp16.txt
+0
-0
tests/results/cpp_ppocr_det_mobile_results_fp32.txt
tests/results/cpp_ppocr_det_mobile_results_fp32.txt
+0
-0
tests/results/python_ppocr_det_mobile_results_fp16.txt
tests/results/python_ppocr_det_mobile_results_fp16.txt
+0
-0
tests/results/python_ppocr_det_mobile_results_fp32.txt
tests/results/python_ppocr_det_mobile_results_fp32.txt
+0
-0
tests/test_serving.sh
tests/test_serving.sh
+1
-1
No files found.
tests/docs/test_cpp.md
View file @
98046bb1
...
...
@@ -38,7 +38,7 @@ bash tests/test_cpp.sh ./tests/configs/ppocr_det_mobile_params.txt '1'
### 使用方式
运行命令:
```
shell
python3.7 tests/compare_results.py
--gt_file
=
./tests/results/
*
.txt
--log_file
=
./tests/output/
infer
_
*
.log
--atol
=
1e-3
--rtol
=
1e-3
python3.7 tests/compare_results.py
--gt_file
=
./tests/results/
cpp_
*
.txt
--log_file
=
./tests/output/
cpp
_
*
.log
--atol
=
1e-3
--rtol
=
1e-3
```
参数介绍:
...
...
tests/docs/test_python.md
View file @
98046bb1
...
...
@@ -78,6 +78,11 @@ bash tests/prepare.sh ./tests/configs/ppocr_det_mobile_params.txt 'whole_train_i
bash tests/test.sh ./tests/configs/ppocr_det_mobile_params.txt
'whole_train_infer'
```
-
模式5:klquant_infer , 测试离线量化;
```
shell
bash tests/test_python.sh tests/configs/ppocr_det_mobile_params.txt
'klquant_infer'
```
## 3. 精度测试
...
...
@@ -89,7 +94,7 @@ bash tests/test.sh ./tests/configs/ppocr_det_mobile_params.txt 'whole_train_infe
### 使用方式
运行命令:
```
shell
python3.7 tests/compare_results.py
--gt_file
=
./tests/results/
*
.txt
--log_file
=
./tests/output/
infer
_
*
.log
--atol
=
1e-3
--rtol
=
1e-3
python3.7 tests/compare_results.py
--gt_file
=
./tests/results/
python_
*
.txt
--log_file
=
./tests/output/
python
_
*
.log
--atol
=
1e-3
--rtol
=
1e-3
```
参数介绍:
...
...
tests/results/ppocr_det_mobile_results_fp16
_cpp
.txt
→
tests/results/
cpp_
ppocr_det_mobile_results_fp16.txt
View file @
98046bb1
File moved
tests/results/ppocr_det_mobile_results_fp32
_cpp
.txt
→
tests/results/
cpp_
ppocr_det_mobile_results_fp32.txt
View file @
98046bb1
File moved
tests/results/ppocr_det_mobile_results_fp16.txt
→
tests/results/
python_
ppocr_det_mobile_results_fp16.txt
View file @
98046bb1
File moved
tests/results/ppocr_det_mobile_results_fp32.txt
→
tests/results/
python_
ppocr_det_mobile_results_fp32.txt
View file @
98046bb1
File moved
tests/test_serving.sh
View file @
98046bb1
...
...
@@ -93,7 +93,7 @@ function func_serving(){
if
[[
${
use_trt
}
=
"False"
||
${
precision
}
=
~
"int8"
]]
&&
[[
${
_flag_quant
}
=
"True"
]]
;
then
continue
fi
_save_log_path
=
"
${
_log_path
}
/
inf
er_gpu_usetrt_
${
use_trt
}
_precision_
${
precision
}
_batchsize_1.log"
_save_log_path
=
"
${
_log_path
}
/
serv
er_gpu_usetrt_
${
use_trt
}
_precision_
${
precision
}
_batchsize_1.log"
set_tensorrt
=
$(
func_set_params
"
${
web_use_trt_key
}
"
"
${
use_trt
}
"
)
set_precision
=
$(
func_set_params
"
${
web_precision_key
}
"
"
${
precision
}
"
)
web_service_cmd
=
"
${
python
}
${
web_service_py
}
${
web_use_gpu_key
}
=
${
use_gpu
}
${
set_tensorrt
}
${
set_precision
}
&>
${
_save_log_path
}
& "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment