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
2afc8dd0
Commit
2afc8dd0
authored
Dec 19, 2021
by
LDOUBLEV
Browse files
fix win
parent
9b8c0ef3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ppocr/data/imaug/label_ops.py
ppocr/data/imaug/label_ops.py
+1
-1
No files found.
ppocr/data/imaug/label_ops.py
View file @
2afc8dd0
...
@@ -291,7 +291,7 @@ class KieLabelEncode(object):
...
@@ -291,7 +291,7 @@ class KieLabelEncode(object):
def
__init__
(
self
,
character_dict_path
,
norm
=
10
,
directed
=
False
,
**
kwargs
):
def
__init__
(
self
,
character_dict_path
,
norm
=
10
,
directed
=
False
,
**
kwargs
):
super
(
KieLabelEncode
,
self
).
__init__
()
super
(
KieLabelEncode
,
self
).
__init__
()
self
.
dict
=
dict
({
''
:
0
})
self
.
dict
=
dict
({
''
:
0
})
with
open
(
character_dict_path
,
'r'
)
as
fr
:
with
open
(
character_dict_path
,
'r'
,
encoding
=
'utf-8'
)
as
fr
:
idx
=
1
idx
=
1
for
line
in
fr
:
for
line
in
fr
:
char
=
line
.
strip
()
char
=
line
.
strip
()
...
...
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