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
d8425466
Unverified
Commit
d8425466
authored
Apr 28, 2022
by
VVsssssk
Committed by
GitHub
Apr 28, 2022
Browse files
[Bug]fix mmdet bc breaking (#1434)
* fix mmdet bc breaking * fix version
parent
276b2648
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
tools/test.py
tools/test.py
+4
-3
No files found.
tools/test.py
View file @
d8425466
...
@@ -11,17 +11,18 @@ from mmcv.parallel import MMDataParallel, MMDistributedDataParallel
...
@@ -11,17 +11,18 @@ from mmcv.parallel import MMDataParallel, MMDistributedDataParallel
from
mmcv.runner
import
(
get_dist_info
,
init_dist
,
load_checkpoint
,
from
mmcv.runner
import
(
get_dist_info
,
init_dist
,
load_checkpoint
,
wrap_fp16_model
)
wrap_fp16_model
)
import
mmdet
from
mmdet3d.apis
import
single_gpu_test
from
mmdet3d.apis
import
single_gpu_test
from
mmdet3d.datasets
import
build_dataloader
,
build_dataset
from
mmdet3d.datasets
import
build_dataloader
,
build_dataset
from
mmdet3d.models
import
build_model
from
mmdet3d.models
import
build_model
from
mmdet.apis
import
multi_gpu_test
,
set_random_seed
from
mmdet.apis
import
multi_gpu_test
,
set_random_seed
from
mmdet.datasets
import
replace_ImageToTensor
from
mmdet.datasets
import
replace_ImageToTensor
try
:
if
mmdet
.
__version__
>
'2.23.0'
:
# If mmdet version > 2.2
0
.0, setup_multi_processes would be imported and
# If mmdet version > 2.2
3
.0, setup_multi_processes would be imported and
# used from mmdet instead of mmdet3d.
# used from mmdet instead of mmdet3d.
from
mmdet.utils
import
setup_multi_processes
from
mmdet.utils
import
setup_multi_processes
e
xcept
ImportError
:
e
lse
:
from
mmdet3d.utils
import
setup_multi_processes
from
mmdet3d.utils
import
setup_multi_processes
...
...
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