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
650bad88
Unverified
Commit
650bad88
authored
May 06, 2022
by
Evezerest
Committed by
GitHub
May 06, 2022
Browse files
Merge branch 'new' into table2
parents
f1d0c8a2
6413fb1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
PPOCRLabel/PPOCRLabel.py
PPOCRLabel/PPOCRLabel.py
+2
-2
No files found.
PPOCRLabel/PPOCRLabel.py
View file @
650bad88
...
@@ -2133,6 +2133,7 @@ class MainWindow(QMainWindow):
...
@@ -2133,6 +2133,7 @@ class MainWindow(QMainWindow):
TableRec_excel_dir
=
self
.
lastOpenDir
+
'/tableRec_excel_output/'
TableRec_excel_dir
=
self
.
lastOpenDir
+
'/tableRec_excel_output/'
os
.
makedirs
(
TableRec_excel_dir
,
exist_ok
=
True
)
os
.
makedirs
(
TableRec_excel_dir
,
exist_ok
=
True
)
filename
,
_
=
os
.
path
.
splitext
(
os
.
path
.
basename
(
self
.
filePath
))
filename
,
_
=
os
.
path
.
splitext
(
os
.
path
.
basename
(
self
.
filePath
))
excel_path
=
TableRec_excel_dir
+
'{}.xlsx'
.
format
(
filename
)
excel_path
=
TableRec_excel_dir
+
'{}.xlsx'
.
format
(
filename
)
if
res
is
None
:
if
res
is
None
:
...
@@ -2321,8 +2322,6 @@ class MainWindow(QMainWindow):
...
@@ -2321,8 +2322,6 @@ class MainWindow(QMainWindow):
# 'Please check the label.txt and tableRec_excel_output\n'
# 'Please check the label.txt and tableRec_excel_output\n'
# QMessageBox.information(self, "Information", msg)
# QMessageBox.information(self, "Information", msg)
# return
# return
train_split
,
val_split
,
test_split
=
partitionDialog
.
getDataPartition
()
train_split
,
val_split
,
test_split
=
partitionDialog
.
getDataPartition
()
# check validate
# check validate
if
train_split
+
val_split
+
test_split
>
100
:
if
train_split
+
val_split
+
test_split
>
100
:
...
@@ -2364,6 +2363,7 @@ class MainWindow(QMainWindow):
...
@@ -2364,6 +2363,7 @@ class MainWindow(QMainWindow):
token_list
=
convert_token
(
html_list
)
token_list
=
convert_token
(
html_list
)
# load box annotations
# load box annotations
cells
=
[]
cells
=
[]
for
anno
in
labeldict
[
image_path
]:
for
anno
in
labeldict
[
image_path
]:
...
...
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