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
8fc45dc6
"docs/source/en/vscode:/vscode.git/clone" did not exist on "f69511ecc618330212e7148265e1c0323d2fa5cf"
Commit
8fc45dc6
authored
May 26, 2021
by
LDOUBLEV
Browse files
delete debug
parent
4a27ac35
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
7 deletions
+5
-7
deploy/cpp_infer/src/main.cpp
deploy/cpp_infer/src/main.cpp
+0
-1
deploy/cpp_infer/tools/build.sh
deploy/cpp_infer/tools/build.sh
+3
-4
deploy/cpp_infer/tools/config.txt
deploy/cpp_infer/tools/config.txt
+1
-1
deploy/cpp_infer/tools/run.sh
deploy/cpp_infer/tools/run.sh
+1
-1
No files found.
deploy/cpp_infer/src/main.cpp
View file @
8fc45dc6
...
...
@@ -51,7 +51,6 @@ int main(int argc, char **argv) {
std
::
string
img_path
(
argv
[
2
]);
std
::
vector
<
std
::
string
>
all_img_names
;
// cv::Mat srcimg = cv::imread(img_path, cv::IMREAD_COLOR);
Utility
::
GetAllFiles
((
char
*
)
img_path
.
c_str
(),
all_img_names
);
DBDetector
det
(
config
.
det_model_dir
,
config
.
use_gpu
,
config
.
gpu_id
,
...
...
deploy/cpp_infer/tools/build.sh
View file @
8fc45dc6
OPENCV_DIR
=
/paddle/Paddle/opencv-3.4.7/opencv3
LIB_DIR
=
/paddle/OCR/debug/paddle_inference
#LIB_DIR=/paddle/Paddle/inference/2.0.2/paddle_inference
LIB_DIR
=
your inference
dir
CUDA_LIB_DIR
=
/usr/local/cuda/lib64
CUDNN_LIB_DIR
=
/usr/lib/x86_64-linux-gnu
TENSORRT_DIR
=
/paddle/Paddle/package/TensorRT/TensorRT-6.0.1.5/
TENSORRT_DIR
=
your trt
dir
BUILD_DIR
=
build
rm
-rf
${
BUILD_DIR
}
...
...
@@ -14,7 +13,7 @@ cmake .. \
-DWITH_MKL
=
ON
\
-DWITH_GPU
=
OFF
\
-DWITH_STATIC_LIB
=
OFF
\
-DWITH_TENSORRT
=
O
N
\
-DWITH_TENSORRT
=
O
FF
\
-DOPENCV_DIR
=
${
OPENCV_DIR
}
\
-DCUDNN_LIB
=
${
CUDNN_LIB_DIR
}
\
-DCUDA_LIB
=
${
CUDA_LIB_DIR
}
\
...
...
deploy/cpp_infer/tools/config.txt
View file @
8fc45dc6
# model load config
use_gpu
1
use_gpu
0
gpu_id 0
gpu_mem 4000
cpu_math_library_num_threads 10
...
...
deploy/cpp_infer/tools/run.sh
View file @
8fc45dc6
./build/ocr_system ./tools/config.txt ../../doc/imgs/
./build/ocr_system ./tools/config.txt ../../doc/imgs/
12.jpg
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