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
d72329ca
Commit
d72329ca
authored
Jun 17, 2022
by
jyn47
Browse files
predict_system.py update
parent
9ffbacc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
tools/infer/predict_system.py
tools/infer/predict_system.py
+8
-5
No files found.
tools/infer/predict_system.py
View file @
d72329ca
...
...
@@ -114,11 +114,14 @@ def sorted_boxes(dt_boxes):
_boxes
=
list
(
sorted_boxes
)
for
i
in
range
(
num_boxes
-
1
):
if
abs
(
_boxes
[
i
+
1
][
0
][
1
]
-
_boxes
[
i
][
0
][
1
])
<
10
and
\
(
_boxes
[
i
+
1
][
0
][
0
]
<
_boxes
[
i
][
0
][
0
]):
tmp
=
_boxes
[
i
]
_boxes
[
i
]
=
_boxes
[
i
+
1
]
_boxes
[
i
+
1
]
=
tmp
for
j
in
range
(
i
,
0
,
-
1
):
if
abs
(
_boxes
[
j
+
1
][
0
][
1
]
-
_boxes
[
j
][
0
][
1
])
<
20
and
\
(
_boxes
[
j
+
1
][
0
][
0
]
<
_boxes
[
j
][
0
][
0
]):
tmp
=
_boxes
[
j
]
_boxes
[
j
]
=
_boxes
[
j
+
1
]
_boxes
[
j
+
1
]
=
tmp
else
:
break
return
_boxes
...
...
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