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
OpenDAS
mmdetection3d
Commits
4199bd61
Unverified
Commit
4199bd61
authored
Mar 28, 2023
by
yechenzhi
Committed by
GitHub
Mar 28, 2023
Browse files
[Refactor]: rename centerpoint coordinates of gt box length and width (#2385)
parent
d67bb7a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mmdet3d/models/dense_heads/centerpoint_head.py
mmdet3d/models/dense_heads/centerpoint_head.py
+5
-5
No files found.
mmdet3d/models/dense_heads/centerpoint_head.py
View file @
4199bd61
...
@@ -519,16 +519,16 @@ class CenterHead(BaseModule):
...
@@ -519,16 +519,16 @@ class CenterHead(BaseModule):
for
k
in
range
(
num_objs
):
for
k
in
range
(
num_objs
):
cls_id
=
task_classes
[
idx
][
k
]
-
1
cls_id
=
task_classes
[
idx
][
k
]
-
1
wid
th
=
task_boxes
[
idx
][
k
][
3
]
leng
th
=
task_boxes
[
idx
][
k
][
3
]
leng
th
=
task_boxes
[
idx
][
k
][
4
]
wid
th
=
task_boxes
[
idx
][
k
][
4
]
wid
th
=
wid
th
/
voxel_size
[
0
]
/
self
.
train_cfg
[
leng
th
=
leng
th
/
voxel_size
[
0
]
/
self
.
train_cfg
[
'out_size_factor'
]
'out_size_factor'
]
leng
th
=
leng
th
/
voxel_size
[
1
]
/
self
.
train_cfg
[
wid
th
=
wid
th
/
voxel_size
[
1
]
/
self
.
train_cfg
[
'out_size_factor'
]
'out_size_factor'
]
if
width
>
0
and
length
>
0
:
if
width
>
0
and
length
>
0
:
radius
=
gaussian_radius
(
radius
=
gaussian_radius
(
(
length
,
wid
th
),
(
width
,
leng
th
),
min_overlap
=
self
.
train_cfg
[
'gaussian_overlap'
])
min_overlap
=
self
.
train_cfg
[
'gaussian_overlap'
])
radius
=
max
(
self
.
train_cfg
[
'min_radius'
],
int
(
radius
))
radius
=
max
(
self
.
train_cfg
[
'min_radius'
],
int
(
radius
))
...
...
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