Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
221cb0332
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
221cb0332
Commits
6accf522
Commit
6accf522
authored
2 years ago
by
lixiangyi
Committed by
ash
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix pointpillar jit
parent
7e410216
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
research/cv/pointpillars/src/core/box_np_ops.py
+6
-6
6 additions, 6 deletions
research/cv/pointpillars/src/core/box_np_ops.py
with
6 additions
and
6 deletions
research/cv/pointpillars/src/core/box_np_ops.py
+
6
−
6
View file @
6accf522
...
...
@@ -362,7 +362,7 @@ def center_to_corner_box2d(centers, dims, angles=None, origin=0.5):
return
corners
#
@numba.jit(nopython=True)
@numba.jit
(
nopython
=
True
)
def
box2d_to_corner_jit
(
boxes
):
"""
box 2d to corner
"""
num_box
=
boxes
.
shape
[
0
]
...
...
@@ -613,7 +613,7 @@ def remove_outside_points(points, rect, trv2c, p2, image_shape):
return
points
#
@numba.jit(nopython=True)
@numba.jit
(
nopython
=
True
)
def
iou_jit
(
boxes
,
query_boxes
,
eps
=
0.0
):
"""
calculate box iou. note that jit version runs 2x faster than cython in
my machine!
...
...
@@ -682,7 +682,7 @@ def corner_to_surfaces_3d(corners):
return
surfaces
#
@numba.jit(nopython=True)
@numba.jit
(
nopython
=
True
)
def
corner_to_surfaces_3d_jit
(
corners
):
"""
convert 3d box corners from corner function above
to surfaces that normal vectors all direct to internal.
...
...
@@ -705,7 +705,7 @@ def corner_to_surfaces_3d_jit(corners):
return
surfaces
##
@numba.jit(nopython=True)
@numba.jit
(
nopython
=
True
)
def
sparse_sum_for_anchors_mask
(
coors
,
shape
):
"""
sparse sum for anchors mask
"""
ret
=
np
.
zeros
(
shape
,
dtype
=
np
.
float32
)
...
...
@@ -714,7 +714,7 @@ def sparse_sum_for_anchors_mask(coors, shape):
return
ret
#
@numba.jit(nopython=True)
@numba.jit
(
nopython
=
True
)
def
fused_get_anchors_area
(
dense_map
,
anchors_bv
,
stride
,
offset
,
grid_size
):
"""
fused get anchors area
"""
...
...
@@ -740,7 +740,7 @@ def fused_get_anchors_area(dense_map, anchors_bv, stride,
return
ret
#
@numba.jit(nopython=True)
@numba.jit
(
nopython
=
True
)
def
distance_similarity
(
points
,
qpoints
,
dist_norm
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment