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
3c431f0b
Commit
3c431f0b
authored
Apr 09, 2021
by
WenmuZhou
Browse files
update model path
parent
c3bb6b52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
deploy/android_demo/app/src/main/java/com/baidu/paddle/lite/demo/ocr/Predictor.java
...c/main/java/com/baidu/paddle/lite/demo/ocr/Predictor.java
+3
-3
No files found.
deploy/android_demo/app/src/main/java/com/baidu/paddle/lite/demo/ocr/Predictor.java
View file @
3c431f0b
...
...
@@ -119,9 +119,9 @@ public class Predictor {
OCRPredictorNative
.
Config
config
=
new
OCRPredictorNative
.
Config
();
config
.
cpuThreadNum
=
cpuThreadNum
;
config
.
detModelFilename
=
realPath
+
File
.
separator
+
"ch_
det_mv3_db
_opt.nb"
;
config
.
recModelFilename
=
realPath
+
File
.
separator
+
"ch_
rec_mv3_crnn
_opt.nb"
;
config
.
clsModelFilename
=
realPath
+
File
.
separator
+
"ch_
cls_mv3
_opt.nb"
;
config
.
detModelFilename
=
realPath
+
File
.
separator
+
"ch_
ppocr_mobile_v2.0_det
_opt.nb"
;
config
.
recModelFilename
=
realPath
+
File
.
separator
+
"ch_
ppocr_mobile_v2.0_rec
_opt.nb"
;
config
.
clsModelFilename
=
realPath
+
File
.
separator
+
"ch_
ppocr_mobile_v2.0_cls
_opt.nb"
;
Log
.
e
(
"Predictor"
,
"model path"
+
config
.
detModelFilename
+
" ; "
+
config
.
recModelFilename
+
";"
+
config
.
clsModelFilename
);
config
.
cpuPower
=
cpuPowerMode
;
paddlePredictor
=
new
OCRPredictorNative
(
config
);
...
...
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