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
18fec567
"vscode:/vscode.git/clone" did not exist on "199db00e33a9c116c8d6a07f3724e56faac02a3e"
Unverified
Commit
18fec567
authored
Jun 30, 2021
by
Danila Rukhovich
Committed by
GitHub
Jun 30, 2021
Browse files
fix round(np.float64) to be int (#687)
parent
f5859d1b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tools/data_converter/scannet_data_utils.py
tools/data_converter/scannet_data_utils.py
+1
-1
No files found.
tools/data_converter/scannet_data_utils.py
View file @
18fec567
...
...
@@ -244,7 +244,7 @@ class ScanNetSegData(object):
num_iter
=
int
(
np
.
sum
(
num_point_all
)
/
float
(
self
.
num_points
))
scene_idxs
=
[]
for
idx
in
range
(
len
(
self
.
data_infos
)):
scene_idxs
.
extend
([
idx
]
*
round
(
sample_prob
[
idx
]
*
num_iter
))
scene_idxs
.
extend
([
idx
]
*
int
(
round
(
sample_prob
[
idx
]
*
num_iter
))
)
scene_idxs
=
np
.
array
(
scene_idxs
).
astype
(
np
.
int32
)
# calculate label weight, adopted from PointNet++
...
...
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