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
0f4d92b6
"examples/custom_diffusion/train_custom_diffusion.py" did not exist on "522f8aa7b2599e58b9815c7d81e9136797c68b5c"
Commit
0f4d92b6
authored
Feb 01, 2021
by
LDOUBLEV
Browse files
fix conflict wiith SRN
parent
7a054c85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ppocr/postprocess/rec_postprocess.py
ppocr/postprocess/rec_postprocess.py
+2
-2
No files found.
ppocr/postprocess/rec_postprocess.py
View file @
0f4d92b6
...
...
@@ -255,12 +255,12 @@ class SRNLabelDecode(BaseRecLabelDecode):
text
=
self
.
decode
(
preds_idx
,
preds_prob
)
if
label
is
None
:
text
=
self
.
decode
(
preds_idx
,
preds_prob
,
is_remove_duplicate
=
Tru
e
)
text
=
self
.
decode
(
preds_idx
,
preds_prob
,
is_remove_duplicate
=
Fals
e
)
return
text
label
=
self
.
decode
(
label
)
return
text
,
label
def
decode
(
self
,
text_index
,
text_prob
=
None
,
is_remove_duplicate
=
Tru
e
):
def
decode
(
self
,
text_index
,
text_prob
=
None
,
is_remove_duplicate
=
Fals
e
):
""" convert text-index into text-label. """
result_list
=
[]
ignored_tokens
=
self
.
get_ignored_tokens
()
...
...
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