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
cb9a8c4b
"...Speech/FastPitch/common/text/unidecoder/replacements.py" did not exist on "0fc002dfc863089e33ea2dee33b0827046e4d174"
Commit
cb9a8c4b
authored
May 05, 2022
by
HinGwenWoong
Browse files
Fix when has not `difficult` field will crash
parent
d1f21650
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
PPOCRLabel/PPOCRLabel.py
PPOCRLabel/PPOCRLabel.py
+1
-1
No files found.
PPOCRLabel/PPOCRLabel.py
View file @
cb9a8c4b
...
@@ -1440,7 +1440,7 @@ class MainWindow(QMainWindow):
...
@@ -1440,7 +1440,7 @@ class MainWindow(QMainWindow):
if
imgidx
in
self
.
PPlabel
.
keys
():
if
imgidx
in
self
.
PPlabel
.
keys
():
for
box
in
self
.
PPlabel
[
imgidx
]:
for
box
in
self
.
PPlabel
[
imgidx
]:
key_cls
=
None
if
not
self
.
kie_mode
else
box
[
'key_cls'
]
key_cls
=
None
if
not
self
.
kie_mode
else
box
[
'key_cls'
]
shapes
.
append
((
box
[
'transcription'
],
box
[
'points'
],
None
,
key_cls
,
box
[
'difficult'
]
))
shapes
.
append
((
box
[
'transcription'
],
box
[
'points'
],
None
,
key_cls
,
box
.
get
(
'difficult'
,
False
)
))
self
.
loadLabels
(
shapes
)
self
.
loadLabels
(
shapes
)
self
.
canvas
.
verified
=
False
self
.
canvas
.
verified
=
False
...
...
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