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
368232cf
Unverified
Commit
368232cf
authored
Jul 23, 2020
by
dyning
Committed by
GitHub
Jul 23, 2020
Browse files
Merge pull request #404 from LDOUBLEV/fixocr
Fixocr
parents
25ba6785
8a11d97d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
deploy/lite/readme.md
deploy/lite/readme.md
+2
-2
deploy/lite/readme_en.md
deploy/lite/readme_en.md
+2
-2
ppocr/modeling/backbones/rec_mobilenet_v3.py
ppocr/modeling/backbones/rec_mobilenet_v3.py
+1
-1
No files found.
deploy/lite/readme.md
View file @
368232cf
...
@@ -18,7 +18,7 @@ Paddle Lite是飞桨轻量化推理引擎,为手机、IOT端提供高效推理
...
@@ -18,7 +18,7 @@ Paddle Lite是飞桨轻量化推理引擎,为手机、IOT端提供高效推理
1.
[
Docker
](
https://paddle-lite.readthedocs.io/zh/latest/user_guides/source_compile.html#docker
)
1.
[
Docker
](
https://paddle-lite.readthedocs.io/zh/latest/user_guides/source_compile.html#docker
)
2.
[
Linux
](
https://paddle-lite.readthedocs.io/zh/latest/user_guides/source_compile.html#android
)
2.
[
Linux
](
https://paddle-lite.readthedocs.io/zh/latest/user_guides/source_compile.html#android
)
3.
[
MAC OS
](
https://paddle-lite.readthedocs.io/zh/latest/user_guides/source_compile.html#id13
)
3.
[
MAC OS
](
https://paddle-lite.readthedocs.io/zh/latest/user_guides/source_compile.html#id13
)
4.
[
Windows
](
https://paddle-lite.readthedocs.io/zh/latest/demo_guides/x86.html#
windows
)
4.
[
Windows
](
https://paddle-lite.readthedocs.io/zh/latest/demo_guides/x86.html#
id4
)
### 1.2 准备预测库
### 1.2 准备预测库
...
@@ -84,7 +84,7 @@ Paddle-Lite 提供了多种策略来自动优化原始的模型,其中包括
...
@@ -84,7 +84,7 @@ Paddle-Lite 提供了多种策略来自动优化原始的模型,其中包括
|模型简介|检测模型|识别模型|Paddle-Lite版本|
|模型简介|检测模型|识别模型|Paddle-Lite版本|
|-|-|-|-|
|-|-|-|-|
|超轻量级中文OCR opt优化模型|
[
下载地址
](
https://paddleocr.bj.bcebos.com/deploy/lite/ch_det_mv3_db_opt.nb
)
|
[
下载地址
](
https://paddleocr.bj.bcebos.com/deploy/lite/ch_rec_mv3_crnn_opt.nb
)
|
2.6.1
|
|超轻量级中文OCR opt优化模型|
[
下载地址
](
https://paddleocr.bj.bcebos.com/deploy/lite/ch_det_mv3_db_opt.nb
)
|
[
下载地址
](
https://paddleocr.bj.bcebos.com/deploy/lite/ch_rec_mv3_crnn_opt.nb
)
|
develop
|
如果直接使用上述表格中的模型进行部署,可略过下述步骤,直接阅读
[
2.2节
](
#2.2与手机联调
)
。
如果直接使用上述表格中的模型进行部署,可略过下述步骤,直接阅读
[
2.2节
](
#2.2与手机联调
)
。
...
...
deploy/lite/readme_en.md
View file @
368232cf
...
@@ -17,7 +17,7 @@ deployment solutions for end-side deployment issues.
...
@@ -17,7 +17,7 @@ deployment solutions for end-side deployment issues.
[
build for Docker
](
https://paddle-lite.readthedocs.io/zh/latest/user_guides/source_compile.html#docker
)
[
build for Docker
](
https://paddle-lite.readthedocs.io/zh/latest/user_guides/source_compile.html#docker
)
[
build for Linux
](
https://paddle-lite.readthedocs.io/zh/latest/user_guides/source_compile.html#android
)
[
build for Linux
](
https://paddle-lite.readthedocs.io/zh/latest/user_guides/source_compile.html#android
)
[
build for MAC OS
](
https://paddle-lite.readthedocs.io/zh/latest/user_guides/source_compile.html#id13
)
[
build for MAC OS
](
https://paddle-lite.readthedocs.io/zh/latest/user_guides/source_compile.html#id13
)
[
build for windows
](
https://paddle-lite.readthedocs.io/zh/latest/demo_guides/x86.html#
windows
)
[
build for windows
](
https://paddle-lite.readthedocs.io/zh/latest/demo_guides/x86.html#
id4
)
## 3. Download prebuild library for android and ios
## 3. Download prebuild library for android and ios
...
@@ -155,7 +155,7 @@ demo/cxx/ocr/
...
@@ -155,7 +155,7 @@ demo/cxx/ocr/
|-- debug/
|-- debug/
| |--ch_det_mv3_db_opt.nb Detection model
| |--ch_det_mv3_db_opt.nb Detection model
| |--ch_rec_mv3_crnn_opt.nb Recognition model
| |--ch_rec_mv3_crnn_opt.nb Recognition model
| |--11.jpg
i
mage for OCR
| |--11.jpg
I
mage for OCR
| |--ppocr_keys_v1.txt Dictionary file
| |--ppocr_keys_v1.txt Dictionary file
| |--libpaddle_light_api_shared.so C++ .so file
| |--libpaddle_light_api_shared.so C++ .so file
| |--config.txt Config file
| |--config.txt Config file
...
...
ppocr/modeling/backbones/rec_mobilenet_v3.py
View file @
368232cf
...
@@ -78,7 +78,7 @@ class MobileNetV3():
...
@@ -78,7 +78,7 @@ class MobileNetV3():
supported_scale
=
[
0.35
,
0.5
,
0.75
,
1.0
,
1.25
]
supported_scale
=
[
0.35
,
0.5
,
0.75
,
1.0
,
1.25
]
assert
self
.
scale
in
supported_scale
,
\
assert
self
.
scale
in
supported_scale
,
\
"supported scale are {} but input scale is {}"
.
format
(
supported_scale
,
scale
)
"supported scale
s
are {} but input scale is {}"
.
format
(
supported_scale
,
self
.
scale
)
def
__call__
(
self
,
input
):
def
__call__
(
self
,
input
):
scale
=
self
.
scale
scale
=
self
.
scale
...
...
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