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
5cd59f78
"src/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "8e4ca1b6b2bf21aa031320cb73d31cdaf6fed7bd"
Unverified
Commit
5cd59f78
authored
Aug 01, 2023
by
Sun Jiahao
Committed by
GitHub
Aug 01, 2023
Browse files
[Fix]: fix open3d version bug (#2633)
parent
5d822daa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
requirements/runtime.txt
requirements/runtime.txt
+1
-1
tests/test_apis/test_inferencers/test_lidar_seg3d_inferencer.py
...test_apis/test_inferencers/test_lidar_seg3d_inferencer.py
+10
-4
No files found.
requirements/runtime.txt
View file @
5cd59f78
...
@@ -3,7 +3,7 @@ networkx>=2.5
...
@@ -3,7 +3,7 @@ networkx>=2.5
numba # you should install numba==0.53.0 if your environment is cuda-9.0
numba # you should install numba==0.53.0 if your environment is cuda-9.0
numpy
numpy
nuscenes-devkit
nuscenes-devkit
open3d
==0.16.0
open3d
plyfile
plyfile
scikit-image
scikit-image
# by default we also use tensorboard to log results
# by default we also use tensorboard to log results
...
...
tests/test_apis/test_inferencers/test_lidar_seg3d_inferencer.py
View file @
5cd59f78
# Copyright (c) OpenMMLab. All rights reserved.
# Copyright (c) OpenMMLab. All rights reserved.
import
os
import
os.path
as
osp
import
os.path
as
osp
import
tempfile
import
tempfile
from
unittest
import
TestCase
from
unittest
import
TestCase
import
mmengine
import
mmengine
import
numpy
as
np
import
numpy
as
np
import
pytest
import
torch
import
torch
from
mmengine.utils
import
is_list_of
from
mmengine.utils
import
is_list_of
...
@@ -33,9 +35,11 @@ class TestLiDARSeg3DInferencer(TestCase):
...
@@ -33,9 +35,11 @@ class TestLiDARSeg3DInferencer(TestCase):
np
.
allclose
(
pred1
[
'pts_semantic_mask'
],
np
.
allclose
(
pred1
[
'pts_semantic_mask'
],
pred2
[
'pts_semantic_mask'
]))
pred2
[
'pts_semantic_mask'
]))
@
pytest
.
mark
.
skipif
(
not
torch
.
cuda
.
is_available
(),
reason
=
'requires CUDA support'
)
@
pytest
.
mark
.
skipif
(
'DISPLAY'
not
in
os
.
environ
,
reason
=
'requires DISPLAY device'
)
def
test_call
(
self
):
def
test_call
(
self
):
if
not
torch
.
cuda
.
is_available
():
return
# single point cloud
# single point cloud
inputs
=
dict
(
points
=
'tests/data/s3dis/points/Area_1_office_2.bin'
)
inputs
=
dict
(
points
=
'tests/data/s3dis/points/Area_1_office_2.bin'
)
torch
.
manual_seed
(
0
)
torch
.
manual_seed
(
0
)
...
@@ -79,9 +83,11 @@ class TestLiDARSeg3DInferencer(TestCase):
...
@@ -79,9 +83,11 @@ class TestLiDARSeg3DInferencer(TestCase):
self
.
assertIn
(
'visualization'
,
res_bs2
)
self
.
assertIn
(
'visualization'
,
res_bs2
)
self
.
assertIn
(
'predictions'
,
res_bs2
)
self
.
assertIn
(
'predictions'
,
res_bs2
)
@
pytest
.
mark
.
skipif
(
not
torch
.
cuda
.
is_available
(),
reason
=
'requires CUDA support'
)
@
pytest
.
mark
.
skipif
(
'DISPLAY'
not
in
os
.
environ
,
reason
=
'requires DISPLAY device'
)
def
test_visualizer
(
self
):
def
test_visualizer
(
self
):
if
not
torch
.
cuda
.
is_available
():
return
inputs
=
dict
(
points
=
'tests/data/s3dis/points/Area_1_office_2.bin'
)
inputs
=
dict
(
points
=
'tests/data/s3dis/points/Area_1_office_2.bin'
)
# img_out_dir
# img_out_dir
with
tempfile
.
TemporaryDirectory
()
as
tmp_dir
:
with
tempfile
.
TemporaryDirectory
()
as
tmp_dir
:
...
...
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