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
233e1116
"vscode:/vscode.git/clone" did not exist on "b4e6a7403d9ff66dab627098abb16fc68a15d024"
Unverified
Commit
233e1116
authored
Feb 25, 2021
by
littletomatodonkey
Committed by
GitHub
Feb 25, 2021
Browse files
Merge branch 'dygraph' into dygraph
parents
1751be75
6cb74046
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
deploy/cpp_infer/src/ocr_rec.cpp
deploy/cpp_infer/src/ocr_rec.cpp
+1
-1
ppocr/data/imaug/make_shrink_map.py
ppocr/data/imaug/make_shrink_map.py
+0
-1
No files found.
deploy/cpp_infer/src/ocr_rec.cpp
View file @
233e1116
...
@@ -76,7 +76,7 @@ void CRNNRecognizer::Run(std::vector<std::vector<std::vector<int>>> boxes,
...
@@ -76,7 +76,7 @@ void CRNNRecognizer::Run(std::vector<std::vector<std::vector<int>>> boxes,
float
(
*
std
::
max_element
(
&
predict_batch
[
n
*
predict_shape
[
2
]],
float
(
*
std
::
max_element
(
&
predict_batch
[
n
*
predict_shape
[
2
]],
&
predict_batch
[(
n
+
1
)
*
predict_shape
[
2
]]));
&
predict_batch
[(
n
+
1
)
*
predict_shape
[
2
]]));
if
(
argmax_idx
>
0
&&
(
!
(
i
>
0
&&
argmax_idx
==
last_index
)))
{
if
(
argmax_idx
>
0
&&
(
!
(
n
>
0
&&
argmax_idx
==
last_index
)))
{
score
+=
max_value
;
score
+=
max_value
;
count
+=
1
;
count
+=
1
;
str_res
.
push_back
(
label_list_
[
argmax_idx
]);
str_res
.
push_back
(
label_list_
[
argmax_idx
]);
...
...
ppocr/data/imaug/make_shrink_map.py
View file @
233e1116
...
@@ -32,7 +32,6 @@ class MakeShrinkMap(object):
...
@@ -32,7 +32,6 @@ class MakeShrinkMap(object):
text_polys
,
ignore_tags
=
self
.
validate_polygons
(
text_polys
,
text_polys
,
ignore_tags
=
self
.
validate_polygons
(
text_polys
,
ignore_tags
,
h
,
w
)
ignore_tags
,
h
,
w
)
gt
=
np
.
zeros
((
h
,
w
),
dtype
=
np
.
float32
)
gt
=
np
.
zeros
((
h
,
w
),
dtype
=
np
.
float32
)
# gt = np.zeros((1, h, w), dtype=np.float32)
mask
=
np
.
ones
((
h
,
w
),
dtype
=
np
.
float32
)
mask
=
np
.
ones
((
h
,
w
),
dtype
=
np
.
float32
)
for
i
in
range
(
len
(
text_polys
)):
for
i
in
range
(
len
(
text_polys
)):
polygon
=
text_polys
[
i
]
polygon
=
text_polys
[
i
]
...
...
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