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
a519d4dd
Commit
a519d4dd
authored
Jan 19, 2022
by
HinGwenWoong
Browse files
[ time left ] remove microseconds
parent
c2671079
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
PPOCRLabel/libs/autoDialog.py
PPOCRLabel/libs/autoDialog.py
+1
-1
No files found.
PPOCRLabel/libs/autoDialog.py
View file @
a519d4dd
...
...
@@ -118,7 +118,7 @@ class AutoDialog(QDialog):
# calculate time left of auto labeling
avg_time
=
(
time
.
time
()
-
self
.
time_start
)
/
i
# Use average time to prevent time fluctuations
time_left
=
str
(
datetime
.
timedelta
(
seconds
=
avg_time
*
(
self
.
lender
-
i
)))
time_left
=
str
(
datetime
.
timedelta
(
seconds
=
avg_time
*
(
self
.
lender
-
i
)))
.
split
(
"."
)[
0
]
# Remove microseconds
self
.
setWindowTitle
(
"PPOCRLabel -- "
+
f
"Time Left:
{
time_left
}
"
)
# show
def
handleListWidgetSingal
(
self
,
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