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
ce26ea1a
Commit
ce26ea1a
authored
Nov 24, 2021
by
Shaoshuai Shi
Browse files
add _init_path.py for using multiple PCDet in the same environment
parent
1f8da8d1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
tools/_init_path.py
tools/_init_path.py
+2
-0
tools/test.py
tools/test.py
+1
-0
tools/train.py
tools/train.py
+6
-3
No files found.
tools/_init_path.py
0 → 100644
View file @
ce26ea1a
import
sys
sys
.
path
.
insert
(
0
,
'../'
)
\ No newline at end of file
tools/test.py
View file @
ce26ea1a
import
_init_path
import
argparse
import
datetime
import
glob
...
...
tools/train.py
View file @
ce26ea1a
import
_init_path
import
argparse
import
datetime
import
glob
...
...
@@ -6,7 +7,6 @@ from pathlib import Path
from
test
import
repeat_eval_ckpt
import
torch
import
torch.distributed
as
dist
import
torch.nn
as
nn
from
tensorboardX
import
SummaryWriter
...
...
@@ -170,6 +170,11 @@ def main():
merge_all_iters_to_one_epoch
=
args
.
merge_all_iters_to_one_epoch
)
import
pdb
pdb
.
set_trace
()
if
hasattr
(
train_set
,
'use_shared_memory'
)
and
train_set
.
use_shared_memory
:
train_set
.
clean_shared_memory
()
logger
.
info
(
'**********************End training %s/%s(%s)**********************
\n\n\n
'
%
(
cfg
.
EXP_GROUP_PATH
,
cfg
.
TAG
,
args
.
extra_tag
))
...
...
@@ -193,8 +198,6 @@ def main():
logger
.
info
(
'**********************End evaluation %s/%s(%s)**********************'
%
(
cfg
.
EXP_GROUP_PATH
,
cfg
.
TAG
,
args
.
extra_tag
))
if
hasattr
(
train_set
,
'use_shared_memory'
)
and
train_set
.
use_shared_memory
:
train_set
.
clean_shared_memory
()
if
__name__
==
'__main__'
:
main
()
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