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
db4baf83
"git@developer.sourcefind.cn:OpenDAS/openpcdet.git" did not exist on "f50c306af3e4837184d6a9e5219db72b1ecc3cf1"
Commit
db4baf83
authored
Jul 03, 2020
by
Shaoshuai Shi
Browse files
support DISABLE_AUG_LIST config for using --set disable augs
parent
5904f8e3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
84 additions
and
72 deletions
+84
-72
pcdet/datasets/augmentor/data_augmentor.py
pcdet/datasets/augmentor/data_augmentor.py
+9
-3
tools/cfgs/dataset_configs/kitti_dataset.yaml
tools/cfgs/dataset_configs/kitti_dataset.yaml
+25
-23
tools/cfgs/kitti_models/pointpillar.yaml
tools/cfgs/kitti_models/pointpillar.yaml
+25
-23
tools/cfgs/kitti_models/pv_rcnn.yaml
tools/cfgs/kitti_models/pv_rcnn.yaml
+25
-23
No files found.
pcdet/datasets/augmentor/data_augmentor.py
View file @
db4baf83
...
@@ -11,10 +11,16 @@ class DataAugmentor(object):
...
@@ -11,10 +11,16 @@ class DataAugmentor(object):
self
.
logger
=
logger
self
.
logger
=
logger
self
.
data_augmentor_queue
=
[]
self
.
data_augmentor_queue
=
[]
for
cur_cfg
in
augmentor_configs
:
aug_config_list
=
augmentor_configs
if
isinstance
(
augmentor_configs
,
list
)
\
else
augmentor_configs
.
AUG_CONFIG_LIST
for
cur_cfg
in
aug_config_list
:
if
not
isinstance
(
augmentor_configs
,
list
):
if
cur_cfg
.
NAME
in
augmentor_configs
.
DISABLE_AUG_LIST
:
continue
cur_augmentor
=
getattr
(
self
,
cur_cfg
.
NAME
)(
config
=
cur_cfg
)
cur_augmentor
=
getattr
(
self
,
cur_cfg
.
NAME
)(
config
=
cur_cfg
)
self
.
data_augmentor_queue
.
append
(
cur_augmentor
)
self
.
data_augmentor_queue
.
append
(
cur_augmentor
)
def
gt_sampling
(
self
,
config
=
None
):
def
gt_sampling
(
self
,
config
=
None
):
db_sampler
=
database_sampler
.
DataBaseSampler
(
db_sampler
=
database_sampler
.
DataBaseSampler
(
root_path
=
self
.
root_path
,
root_path
=
self
.
root_path
,
...
...
tools/cfgs/dataset_configs/kitti_dataset.yaml
View file @
db4baf83
...
@@ -17,29 +17,31 @@ FOV_POINTS_ONLY: True
...
@@ -17,29 +17,31 @@ FOV_POINTS_ONLY: True
DATA_AUGMENTOR
:
DATA_AUGMENTOR
:
-
NAME
:
gt_sampling
DISABLE_AUG_LIST
:
[
'
placeholder'
]
USE_ROAD_PLANE
:
True
AUG_CONFIG_LIST
:
DB_INFO_PATH
:
-
NAME
:
gt_sampling
-
kitti_dbinfos_train.pkl
USE_ROAD_PLANE
:
True
PREPARE
:
{
DB_INFO_PATH
:
filter_by_min_points
:
[
'
Car:5'
,
'
Pedestrian:5'
,
'
Cyclist:5'
],
-
kitti_dbinfos_train.pkl
filter_by_difficulty
:
[
-1
],
PREPARE
:
{
}
filter_by_min_points
:
[
'
Car:5'
,
'
Pedestrian:5'
,
'
Cyclist:5'
],
filter_by_difficulty
:
[
-1
],
SAMPLE_GROUPS
:
[
'
Car:20'
,
'
Pedestrian:15'
,
'
Cyclist:15'
]
}
NUM_POINT_FEATURES
:
4
DATABASE_WITH_FAKELIDAR
:
False
SAMPLE_GROUPS
:
[
'
Car:20'
,
'
Pedestrian:15'
,
'
Cyclist:15'
]
REMOVE_EXTRA_WIDTH
:
[
0.0
,
0.0
,
0.0
]
NUM_POINT_FEATURES
:
4
LIMIT_WHOLE_SCENE
:
True
DATABASE_WITH_FAKELIDAR
:
False
REMOVE_EXTRA_WIDTH
:
[
0.0
,
0.0
,
0.0
]
-
NAME
:
random_world_flip
LIMIT_WHOLE_SCENE
:
True
ALONG_AXIS_LIST
:
[
'
x'
]
-
NAME
:
random_world_flip
-
NAME
:
random_world_rotation
ALONG_AXIS_LIST
:
[
'
x'
]
WORLD_ROT_ANGLE
:
[
-0.78539816
,
0.78539816
]
-
NAME
:
random_world_rotation
-
NAME
:
random_world_scaling
WORLD_ROT_ANGLE
:
[
-0.78539816
,
0.78539816
]
WORLD_SCALE_RANGE
:
[
0.95
,
1.05
]
-
NAME
:
random_world_scaling
WORLD_SCALE_RANGE
:
[
0.95
,
1.05
]
POINT_FEATURE_ENCODING
:
{
POINT_FEATURE_ENCODING
:
{
...
...
tools/cfgs/kitti_models/pointpillar.yaml
View file @
db4baf83
...
@@ -21,29 +21,31 @@ DATA_CONFIG:
...
@@ -21,29 +21,31 @@ DATA_CONFIG:
'
test'
:
40000
'
test'
:
40000
}
}
DATA_AUGMENTOR
:
DATA_AUGMENTOR
:
-
NAME
:
gt_sampling
DISABLE_AUG_LIST
:
[
'
placeholder'
]
USE_ROAD_PLANE
:
True
AUG_CONFIG_LIST
:
DB_INFO_PATH
:
-
NAME
:
gt_sampling
-
kitti_dbinfos_train.pkl
USE_ROAD_PLANE
:
True
PREPARE
:
{
DB_INFO_PATH
:
filter_by_min_points
:
[
'
Car:5'
,
'
Pedestrian:5'
,
'
Cyclist:5'
],
-
kitti_dbinfos_train.pkl
filter_by_difficulty
:
[
-1
],
PREPARE
:
{
}
filter_by_min_points
:
[
'
Car:5'
,
'
Pedestrian:5'
,
'
Cyclist:5'
],
filter_by_difficulty
:
[
-1
],
SAMPLE_GROUPS
:
[
'
Car:15'
,
'
Pedestrian:15'
,
'
Cyclist:15'
]
}
NUM_POINT_FEATURES
:
4
DATABASE_WITH_FAKELIDAR
:
False
SAMPLE_GROUPS
:
[
'
Car:15'
,
'
Pedestrian:15'
,
'
Cyclist:15'
]
REMOVE_EXTRA_WIDTH
:
[
0.0
,
0.0
,
0.0
]
NUM_POINT_FEATURES
:
4
LIMIT_WHOLE_SCENE
:
False
DATABASE_WITH_FAKELIDAR
:
False
REMOVE_EXTRA_WIDTH
:
[
0.0
,
0.0
,
0.0
]
-
NAME
:
random_world_flip
LIMIT_WHOLE_SCENE
:
False
ALONG_AXIS_LIST
:
[
'
x'
]
-
NAME
:
random_world_flip
-
NAME
:
random_world_rotation
ALONG_AXIS_LIST
:
[
'
x'
]
WORLD_ROT_ANGLE
:
[
-0.78539816
,
0.78539816
]
-
NAME
:
random_world_rotation
-
NAME
:
random_world_scaling
WORLD_ROT_ANGLE
:
[
-0.78539816
,
0.78539816
]
WORLD_SCALE_RANGE
:
[
0.95
,
1.05
]
-
NAME
:
random_world_scaling
WORLD_SCALE_RANGE
:
[
0.95
,
1.05
]
MODEL
:
MODEL
:
NAME
:
PointPillar
NAME
:
PointPillar
...
...
tools/cfgs/kitti_models/pv_rcnn.yaml
View file @
db4baf83
...
@@ -3,29 +3,31 @@ CLASS_NAMES: ['Car', 'Pedestrian', 'Cyclist']
...
@@ -3,29 +3,31 @@ CLASS_NAMES: ['Car', 'Pedestrian', 'Cyclist']
DATA_CONFIG
:
DATA_CONFIG
:
_BASE_CONFIG_
:
cfgs/dataset_configs/kitti_dataset.yaml
_BASE_CONFIG_
:
cfgs/dataset_configs/kitti_dataset.yaml
DATA_AUGMENTOR
:
DATA_AUGMENTOR
:
-
NAME
:
gt_sampling
DISABLE_AUG_LIST
:
[
'
placeholder'
]
USE_ROAD_PLANE
:
True
AUG_CONFIG_LIST
:
DB_INFO_PATH
:
-
NAME
:
gt_sampling
-
kitti_dbinfos_train.pkl
USE_ROAD_PLANE
:
True
PREPARE
:
{
DB_INFO_PATH
:
filter_by_min_points
:
[
'
Car:5'
,
'
Pedestrian:5'
,
'
Cyclist:5'
],
-
kitti_dbinfos_train.pkl
filter_by_difficulty
:
[
-1
],
PREPARE
:
{
}
filter_by_min_points
:
[
'
Car:5'
,
'
Pedestrian:5'
,
'
Cyclist:5'
],
filter_by_difficulty
:
[
-1
],
SAMPLE_GROUPS
:
[
'
Car:15'
,
'
Pedestrian:10'
,
'
Cyclist:10'
]
}
NUM_POINT_FEATURES
:
4
DATABASE_WITH_FAKELIDAR
:
False
SAMPLE_GROUPS
:
[
'
Car:15'
,
'
Pedestrian:10'
,
'
Cyclist:10'
]
REMOVE_EXTRA_WIDTH
:
[
0.0
,
0.0
,
0.0
]
NUM_POINT_FEATURES
:
4
LIMIT_WHOLE_SCENE
:
False
DATABASE_WITH_FAKELIDAR
:
False
REMOVE_EXTRA_WIDTH
:
[
0.0
,
0.0
,
0.0
]
-
NAME
:
random_world_flip
LIMIT_WHOLE_SCENE
:
False
ALONG_AXIS_LIST
:
[
'
x'
]
-
NAME
:
random_world_flip
-
NAME
:
random_world_rotation
ALONG_AXIS_LIST
:
[
'
x'
]
WORLD_ROT_ANGLE
:
[
-0.78539816
,
0.78539816
]
-
NAME
:
random_world_rotation
-
NAME
:
random_world_scaling
WORLD_ROT_ANGLE
:
[
-0.78539816
,
0.78539816
]
WORLD_SCALE_RANGE
:
[
0.95
,
1.05
]
-
NAME
:
random_world_scaling
WORLD_SCALE_RANGE
:
[
0.95
,
1.05
]
MODEL
:
MODEL
:
NAME
:
PVRCNN
NAME
:
PVRCNN
...
...
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