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
OpenPCDet
Commits
14fdedca
"git@developer.sourcefind.cn:yangql/googletest.git" did not exist on "d8db0ca9cf226f37e909982af83845a4cd40800f"
Unverified
Commit
14fdedca
authored
Sep 14, 2021
by
jihan.yang
Committed by
GitHub
Sep 14, 2021
Browse files
Modify global gt database to support multi-machine
parent
3b9549c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
pcdet/datasets/augmentor/database_sampler.py
pcdet/datasets/augmentor/database_sampler.py
+3
-2
No files found.
pcdet/datasets/augmentor/database_sampler.py
View file @
14fdedca
...
...
@@ -64,7 +64,8 @@ class DataBaseSampler(object):
db_data_path
=
self
.
root_path
.
resolve
()
/
self
.
sampler_cfg
.
DB_DATA_PATH
[
0
]
sa_key
=
self
.
sampler_cfg
.
DB_DATA_PATH
[
0
]
if
cur_rank
%
num_gpus
==
0
and
not
os
.
path
.
exists
(
f
"/dev/shm/
{
sa_key
}
"
):
# assume 8 gpus per machine
if
cur_rank
%
8
==
0
and
not
os
.
path
.
exists
(
f
"/dev/shm/
{
sa_key
}
"
):
gt_database_data
=
np
.
load
(
db_data_path
)
common_utils
.
sa_create
(
f
"shm://
{
sa_key
}
"
,
gt_database_data
)
...
...
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