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
raojy
mmdetection3d_rjy
Commits
eb1107e4
Commit
eb1107e4
authored
Apr 01, 2026
by
raojy
Browse files
fix_mmdetection
parent
7aa442d5
Pipeline
#3461
canceled with stages
Changes
569
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
1565 additions
and
0 deletions
+1565
-0
mmde/configs/_base_/models/imvotenet.py
mmde/configs/_base_/models/imvotenet.py
+118
-0
mmde/configs/_base_/models/mask-rcnn_r50_fpn.py
mmde/configs/_base_/models/mask-rcnn_r50_fpn.py
+125
-0
mmde/configs/_base_/models/minkunet.py
mmde/configs/_base_/models/minkunet.py
+33
-0
mmde/configs/_base_/models/multiview_dfm.py
mmde/configs/_base_/models/multiview_dfm.py
+104
-0
mmde/configs/_base_/models/paconv_ssg-cuda.py
mmde/configs/_base_/models/paconv_ssg-cuda.py
+7
-0
mmde/configs/_base_/models/paconv_ssg.py
mmde/configs/_base_/models/paconv_ssg.py
+50
-0
mmde/configs/_base_/models/parta2.py
mmde/configs/_base_/models/parta2.py
+207
-0
mmde/configs/_base_/models/pgd.py
mmde/configs/_base_/models/pgd.py
+56
-0
mmde/configs/_base_/models/point_rcnn.py
mmde/configs/_base_/models/point_rcnn.py
+148
-0
mmde/configs/_base_/models/pointnet2_msg.py
mmde/configs/_base_/models/pointnet2_msg.py
+28
-0
mmde/configs/_base_/models/pointnet2_ssg.py
mmde/configs/_base_/models/pointnet2_ssg.py
+36
-0
mmde/configs/_base_/models/pointpillars_hv_fpn_lyft.py
mmde/configs/_base_/models/pointpillars_hv_fpn_lyft.py
+23
-0
mmde/configs/_base_/models/pointpillars_hv_fpn_nus.py
mmde/configs/_base_/models/pointpillars_hv_fpn_nus.py
+100
-0
mmde/configs/_base_/models/pointpillars_hv_fpn_range100_lyft.py
...onfigs/_base_/models/pointpillars_hv_fpn_range100_lyft.py
+23
-0
mmde/configs/_base_/models/pointpillars_hv_secfpn_kitti.py
mmde/configs/_base_/models/pointpillars_hv_secfpn_kitti.py
+98
-0
mmde/configs/_base_/models/pointpillars_hv_secfpn_waymo.py
mmde/configs/_base_/models/pointpillars_hv_secfpn_waymo.py
+112
-0
mmde/configs/_base_/models/second_hv_secfpn_kitti.py
mmde/configs/_base_/models/second_hv_secfpn_kitti.py
+94
-0
mmde/configs/_base_/models/second_hv_secfpn_waymo.py
mmde/configs/_base_/models/second_hv_secfpn_waymo.py
+108
-0
mmde/configs/_base_/models/smoke.py
mmde/configs/_base_/models/smoke.py
+61
-0
mmde/configs/_base_/models/spvcnn.py
mmde/configs/_base_/models/spvcnn.py
+34
-0
No files found.
Too many changes to show.
To preserve performance only
569 of 569+
files are displayed.
Plain diff
Email patch
mmde/configs/_base_/models/imvotenet.py
0 → 100644
View file @
eb1107e4
model
=
dict
(
type
=
'ImVoteNet'
,
data_preprocessor
=
dict
(
type
=
'Det3DDataPreprocessor'
,
# use caffe img_norm
mean
=
[
103.530
,
116.280
,
123.675
],
std
=
[
1.0
,
1.0
,
1.0
],
bgr_to_rgb
=
False
,
pad_size_divisor
=
32
),
img_backbone
=
dict
(
type
=
'mmdet.ResNet'
,
depth
=
50
,
num_stages
=
4
,
out_indices
=
(
0
,
1
,
2
,
3
),
frozen_stages
=
1
,
norm_cfg
=
dict
(
type
=
'BN'
,
requires_grad
=
False
),
norm_eval
=
True
,
style
=
'caffe'
),
img_neck
=
dict
(
type
=
'mmdet.FPN'
,
in_channels
=
[
256
,
512
,
1024
,
2048
],
out_channels
=
256
,
num_outs
=
5
),
img_rpn_head
=
dict
(
_scope_
=
'mmdet'
,
type
=
'RPNHead'
,
in_channels
=
256
,
feat_channels
=
256
,
anchor_generator
=
dict
(
type
=
'AnchorGenerator'
,
scales
=
[
8
],
ratios
=
[
0.5
,
1.0
,
2.0
],
strides
=
[
4
,
8
,
16
,
32
,
64
]),
bbox_coder
=
dict
(
type
=
'DeltaXYWHBBoxCoder'
,
target_means
=
[.
0
,
.
0
,
.
0
,
.
0
],
target_stds
=
[
1.0
,
1.0
,
1.0
,
1.0
]),
loss_cls
=
dict
(
type
=
'CrossEntropyLoss'
,
use_sigmoid
=
True
,
loss_weight
=
1.0
),
loss_bbox
=
dict
(
type
=
'L1Loss'
,
loss_weight
=
1.0
)),
img_roi_head
=
dict
(
_scope_
=
'mmdet'
,
type
=
'StandardRoIHead'
,
bbox_roi_extractor
=
dict
(
type
=
'SingleRoIExtractor'
,
roi_layer
=
dict
(
type
=
'RoIAlign'
,
output_size
=
7
,
sampling_ratio
=
0
),
out_channels
=
256
,
featmap_strides
=
[
4
,
8
,
16
,
32
]),
bbox_head
=
dict
(
type
=
'Shared2FCBBoxHead'
,
in_channels
=
256
,
fc_out_channels
=
1024
,
roi_feat_size
=
7
,
num_classes
=
10
,
bbox_coder
=
dict
(
type
=
'DeltaXYWHBBoxCoder'
,
target_means
=
[
0.
,
0.
,
0.
,
0.
],
target_stds
=
[
0.1
,
0.1
,
0.2
,
0.2
]),
reg_class_agnostic
=
False
,
loss_cls
=
dict
(
type
=
'CrossEntropyLoss'
,
use_sigmoid
=
False
,
loss_weight
=
1.0
),
loss_bbox
=
dict
(
type
=
'L1Loss'
,
loss_weight
=
1.0
))),
# model training and testing settings
train_cfg
=
dict
(
_scope_
=
'mmdet'
,
img_rpn
=
dict
(
assigner
=
dict
(
type
=
'MaxIoUAssigner'
,
pos_iou_thr
=
0.7
,
neg_iou_thr
=
0.3
,
min_pos_iou
=
0.3
,
match_low_quality
=
True
,
ignore_iof_thr
=-
1
),
sampler
=
dict
(
type
=
'RandomSampler'
,
num
=
256
,
pos_fraction
=
0.5
,
neg_pos_ub
=-
1
,
add_gt_as_proposals
=
False
),
allowed_border
=-
1
,
pos_weight
=-
1
,
debug
=
False
),
img_rpn_proposal
=
dict
(
nms_across_levels
=
False
,
nms_pre
=
2000
,
nms_post
=
1000
,
max_per_img
=
1000
,
nms
=
dict
(
type
=
'nms'
,
iou_threshold
=
0.7
),
min_bbox_size
=
0
),
img_rcnn
=
dict
(
assigner
=
dict
(
type
=
'MaxIoUAssigner'
,
pos_iou_thr
=
0.5
,
neg_iou_thr
=
0.5
,
min_pos_iou
=
0.5
,
match_low_quality
=
False
,
ignore_iof_thr
=-
1
),
sampler
=
dict
(
type
=
'RandomSampler'
,
num
=
512
,
pos_fraction
=
0.25
,
neg_pos_ub
=-
1
,
add_gt_as_proposals
=
True
),
pos_weight
=-
1
,
debug
=
False
)),
test_cfg
=
dict
(
img_rpn
=
dict
(
nms_across_levels
=
False
,
nms_pre
=
1000
,
nms_post
=
1000
,
max_per_img
=
1000
,
nms
=
dict
(
type
=
'nms'
,
iou_threshold
=
0.7
),
min_bbox_size
=
0
),
img_rcnn
=
dict
(
score_thr
=
0.05
,
nms
=
dict
(
type
=
'nms'
,
iou_threshold
=
0.5
),
max_per_img
=
100
)))
mmde/configs/_base_/models/mask-rcnn_r50_fpn.py
0 → 100644
View file @
eb1107e4
# model settings
model
=
dict
(
type
=
'MaskRCNN'
,
pretrained
=
'torchvision://resnet50'
,
_scope_
=
'mmdet'
,
backbone
=
dict
(
type
=
'ResNet'
,
depth
=
50
,
num_stages
=
4
,
out_indices
=
(
0
,
1
,
2
,
3
),
frozen_stages
=
1
,
norm_cfg
=
dict
(
type
=
'BN'
,
requires_grad
=
True
),
norm_eval
=
True
,
style
=
'pytorch'
),
neck
=
dict
(
type
=
'FPN'
,
in_channels
=
[
256
,
512
,
1024
,
2048
],
out_channels
=
256
,
num_outs
=
5
),
rpn_head
=
dict
(
type
=
'RPNHead'
,
in_channels
=
256
,
feat_channels
=
256
,
anchor_generator
=
dict
(
type
=
'AnchorGenerator'
,
scales
=
[
8
],
ratios
=
[
0.5
,
1.0
,
2.0
],
strides
=
[
4
,
8
,
16
,
32
,
64
]),
bbox_coder
=
dict
(
type
=
'DeltaXYWHBBoxCoder'
,
target_means
=
[.
0
,
.
0
,
.
0
,
.
0
],
target_stds
=
[
1.0
,
1.0
,
1.0
,
1.0
]),
loss_cls
=
dict
(
type
=
'CrossEntropyLoss'
,
use_sigmoid
=
True
,
loss_weight
=
1.0
),
loss_bbox
=
dict
(
type
=
'L1Loss'
,
loss_weight
=
1.0
)),
roi_head
=
dict
(
type
=
'StandardRoIHead'
,
bbox_roi_extractor
=
dict
(
type
=
'SingleRoIExtractor'
,
roi_layer
=
dict
(
type
=
'RoIAlign'
,
output_size
=
7
,
sampling_ratio
=
0
),
out_channels
=
256
,
featmap_strides
=
[
4
,
8
,
16
,
32
]),
bbox_head
=
dict
(
type
=
'Shared2FCBBoxHead'
,
in_channels
=
256
,
fc_out_channels
=
1024
,
roi_feat_size
=
7
,
num_classes
=
80
,
bbox_coder
=
dict
(
type
=
'DeltaXYWHBBoxCoder'
,
target_means
=
[
0.
,
0.
,
0.
,
0.
],
target_stds
=
[
0.1
,
0.1
,
0.2
,
0.2
]),
reg_class_agnostic
=
False
,
loss_cls
=
dict
(
type
=
'CrossEntropyLoss'
,
use_sigmoid
=
False
,
loss_weight
=
1.0
),
loss_bbox
=
dict
(
type
=
'L1Loss'
,
loss_weight
=
1.0
)),
mask_roi_extractor
=
dict
(
type
=
'SingleRoIExtractor'
,
roi_layer
=
dict
(
type
=
'RoIAlign'
,
output_size
=
14
,
sampling_ratio
=
0
),
out_channels
=
256
,
featmap_strides
=
[
4
,
8
,
16
,
32
]),
mask_head
=
dict
(
type
=
'FCNMaskHead'
,
num_convs
=
4
,
in_channels
=
256
,
conv_out_channels
=
256
,
num_classes
=
80
,
loss_mask
=
dict
(
type
=
'CrossEntropyLoss'
,
use_mask
=
True
,
loss_weight
=
1.0
))),
# model training and testing settings
train_cfg
=
dict
(
rpn
=
dict
(
assigner
=
dict
(
type
=
'MaxIoUAssigner'
,
pos_iou_thr
=
0.7
,
neg_iou_thr
=
0.3
,
min_pos_iou
=
0.3
,
match_low_quality
=
True
,
ignore_iof_thr
=-
1
),
sampler
=
dict
(
type
=
'RandomSampler'
,
num
=
256
,
pos_fraction
=
0.5
,
neg_pos_ub
=-
1
,
add_gt_as_proposals
=
False
),
allowed_border
=-
1
,
pos_weight
=-
1
,
debug
=
False
),
rpn_proposal
=
dict
(
nms_across_levels
=
False
,
nms_pre
=
2000
,
nms_post
=
1000
,
max_per_img
=
1000
,
nms
=
dict
(
type
=
'nms'
,
iou_threshold
=
0.7
),
min_bbox_size
=
0
),
rcnn
=
dict
(
assigner
=
dict
(
type
=
'MaxIoUAssigner'
,
pos_iou_thr
=
0.5
,
neg_iou_thr
=
0.5
,
min_pos_iou
=
0.5
,
match_low_quality
=
True
,
ignore_iof_thr
=-
1
),
sampler
=
dict
(
type
=
'RandomSampler'
,
num
=
512
,
pos_fraction
=
0.25
,
neg_pos_ub
=-
1
,
add_gt_as_proposals
=
True
),
mask_size
=
28
,
pos_weight
=-
1
,
debug
=
False
)),
test_cfg
=
dict
(
rpn
=
dict
(
nms_across_levels
=
False
,
nms_pre
=
1000
,
nms_post
=
1000
,
max_per_img
=
1000
,
nms
=
dict
(
type
=
'nms'
,
iou_threshold
=
0.7
),
min_bbox_size
=
0
),
rcnn
=
dict
(
score_thr
=
0.05
,
nms
=
dict
(
type
=
'nms'
,
iou_threshold
=
0.5
),
max_per_img
=
100
,
mask_thr_binary
=
0.5
)))
mmde/configs/_base_/models/minkunet.py
0 → 100644
View file @
eb1107e4
model
=
dict
(
type
=
'MinkUNet'
,
data_preprocessor
=
dict
(
type
=
'Det3DDataPreprocessor'
,
voxel
=
True
,
voxel_type
=
'minkunet'
,
batch_first
=
False
,
max_voxels
=
80000
,
voxel_layer
=
dict
(
max_num_points
=-
1
,
point_cloud_range
=
[
-
100
,
-
100
,
-
20
,
100
,
100
,
20
],
voxel_size
=
[
0.05
,
0.05
,
0.05
],
max_voxels
=
(
-
1
,
-
1
))),
backbone
=
dict
(
type
=
'MinkUNetBackbone'
,
in_channels
=
4
,
num_stages
=
4
,
base_channels
=
32
,
encoder_channels
=
[
32
,
64
,
128
,
256
],
encoder_blocks
=
[
2
,
2
,
2
,
2
],
decoder_channels
=
[
256
,
128
,
96
,
96
],
decoder_blocks
=
[
2
,
2
,
2
,
2
],
block_type
=
'basic'
,
sparseconv_backend
=
'torchsparse'
),
decode_head
=
dict
(
type
=
'MinkUNetHead'
,
channels
=
96
,
num_classes
=
19
,
dropout_ratio
=
0
,
loss_decode
=
dict
(
type
=
'mmdet.CrossEntropyLoss'
,
avg_non_ignore
=
True
),
ignore_index
=
19
),
train_cfg
=
dict
(),
test_cfg
=
dict
())
mmde/configs/_base_/models/multiview_dfm.py
0 → 100644
View file @
eb1107e4
model
=
dict
(
type
=
'MultiViewDfM'
,
data_preprocessor
=
dict
(
type
=
'Det3DDataPreprocessor'
,
mean
=
[
123.675
,
116.28
,
103.53
],
std
=
[
58.395
,
57.12
,
57.375
],
bgr_to_rgb
=
True
,
pad_size_divisor
=
32
),
backbone
=
dict
(
type
=
'mmdet.ResNet'
,
depth
=
101
,
num_stages
=
4
,
out_indices
=
(
0
,
1
,
2
,
3
),
frozen_stages
=
1
,
norm_cfg
=
dict
(
type
=
'BN'
,
requires_grad
=
False
),
norm_eval
=
True
,
style
=
'pytorch'
,
init_cfg
=
dict
(
type
=
'Pretrained'
,
checkpoint
=
'torchvision://resnet101'
),
dcn
=
dict
(
type
=
'DCNv2'
,
deform_groups
=
1
,
fallback_on_stride
=
False
),
stage_with_dcn
=
(
False
,
False
,
True
,
True
)),
neck
=
dict
(
type
=
'mmdet.FPN'
,
in_channels
=
[
256
,
512
,
1024
,
2048
],
out_channels
=
64
,
num_outs
=
4
),
neck_2d
=
None
,
bbox_head_2d
=
None
,
backbone_stereo
=
None
,
depth_head
=
None
,
backbone_3d
=
None
,
neck_3d
=
dict
(
type
=
'OutdoorImVoxelNeck'
,
in_channels
=
64
,
out_channels
=
256
),
valid_sample
=
True
,
voxel_size
=
(
0.5
,
0.5
,
0.5
),
# n_voxels=[240, 300, 12]
anchor_generator
=
dict
(
type
=
'AlignedAnchor3DRangeGenerator'
,
ranges
=
[[
-
35.0
,
-
75.0
,
-
2
,
75.0
,
75.0
,
4
]],
rotations
=
[.
0
]),
bbox_head_3d
=
dict
(
type
=
'Anchor3DHead'
,
num_classes
=
3
,
in_channels
=
256
,
feat_channels
=
256
,
use_direction_classifier
=
True
,
anchor_generator
=
dict
(
type
=
'AlignedAnchor3DRangeGenerator'
,
ranges
=
[[
-
35.0
,
-
75.0
,
0
,
75.0
,
75.0
,
0
],
[
-
35.0
,
-
75.0
,
-
0.1188
,
75.0
,
75.0
,
-
0.1188
],
[
-
35.0
,
-
75.0
,
-
0.0345
,
75.0
,
75.0
,
-
0.0345
]],
sizes
=
[
[
0.91
,
0.84
,
1.74
],
# pedestrian
[
1.81
,
0.84
,
1.77
],
# cyclist
[
4.73
,
2.08
,
1.77
],
# car
],
rotations
=
[
0
,
1.57
],
reshape_out
=
False
),
diff_rad_by_sin
=
True
,
dir_offset
=-
0.7854
,
# -pi / 4
bbox_coder
=
dict
(
type
=
'DeltaXYZWLHRBBoxCoder'
),
loss_cls
=
dict
(
type
=
'mmdet.FocalLoss'
,
use_sigmoid
=
True
,
gamma
=
2.0
,
alpha
=
0.25
,
loss_weight
=
1.0
),
loss_bbox
=
dict
(
type
=
'mmdet.SmoothL1Loss'
,
beta
=
1.0
/
9.0
,
loss_weight
=
2.0
),
loss_dir
=
dict
(
type
=
'mmdet.CrossEntropyLoss'
,
use_sigmoid
=
False
,
loss_weight
=
0.2
)),
train_cfg
=
dict
(
assigner
=
[
dict
(
# for Pedestrian
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'BboxOverlapsNearest3D'
),
pos_iou_thr
=
0.5
,
neg_iou_thr
=
0.35
,
min_pos_iou
=
0.35
,
ignore_iof_thr
=-
1
),
dict
(
# for Cyclist
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'BboxOverlapsNearest3D'
),
pos_iou_thr
=
0.5
,
neg_iou_thr
=
0.35
,
min_pos_iou
=
0.35
,
ignore_iof_thr
=-
1
),
dict
(
# for Car
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'BboxOverlapsNearest3D'
),
pos_iou_thr
=
0.6
,
neg_iou_thr
=
0.45
,
min_pos_iou
=
0.45
,
ignore_iof_thr
=-
1
)
],
allowed_border
=
0
,
pos_weight
=-
1
,
debug
=
False
),
test_cfg
=
dict
(
use_rotate_nms
=
True
,
nms_across_levels
=
False
,
nms_thr
=
0.05
,
score_thr
=
0.001
,
min_bbox_size
=
0
,
nms_pre
=
4096
,
max_num
=
500
))
mmde/configs/_base_/models/paconv_ssg-cuda.py
0 → 100644
View file @
eb1107e4
_base_
=
'./paconv_ssg.py'
model
=
dict
(
backbone
=
dict
(
sa_cfg
=
dict
(
type
=
'PAConvCUDASAModule'
,
scorenet_cfg
=
dict
(
mlp_channels
=
[
8
,
16
,
16
]))))
mmde/configs/_base_/models/paconv_ssg.py
0 → 100644
View file @
eb1107e4
# model settings
model
=
dict
(
type
=
'EncoderDecoder3D'
,
data_preprocessor
=
dict
(
type
=
'Det3DDataPreprocessor'
),
backbone
=
dict
(
type
=
'PointNet2SASSG'
,
in_channels
=
9
,
# [xyz, rgb, normalized_xyz]
num_points
=
(
1024
,
256
,
64
,
16
),
radius
=
(
None
,
None
,
None
,
None
),
# use kNN instead of ball query
num_samples
=
(
32
,
32
,
32
,
32
),
sa_channels
=
((
32
,
32
,
64
),
(
64
,
64
,
128
),
(
128
,
128
,
256
),
(
256
,
256
,
512
)),
fp_channels
=
(),
norm_cfg
=
dict
(
type
=
'BN2d'
,
momentum
=
0.1
),
sa_cfg
=
dict
(
type
=
'PAConvSAModule'
,
pool_mod
=
'max'
,
use_xyz
=
True
,
normalize_xyz
=
False
,
paconv_num_kernels
=
[
16
,
16
,
16
],
paconv_kernel_input
=
'w_neighbor'
,
scorenet_input
=
'w_neighbor_dist'
,
scorenet_cfg
=
dict
(
mlp_channels
=
[
16
,
16
,
16
],
score_norm
=
'softmax'
,
temp_factor
=
1.0
,
last_bn
=
False
))),
decode_head
=
dict
(
type
=
'PAConvHead'
,
# PAConv model's decoder takes skip connections from beckbone
# different from PointNet++, it also concats input features in the last
# level of decoder, leading to `128 + 6` as the channel number
fp_channels
=
((
768
,
256
,
256
),
(
384
,
256
,
256
),
(
320
,
256
,
128
),
(
128
+
6
,
128
,
128
,
128
)),
channels
=
128
,
dropout_ratio
=
0.5
,
conv_cfg
=
dict
(
type
=
'Conv1d'
),
norm_cfg
=
dict
(
type
=
'BN1d'
),
act_cfg
=
dict
(
type
=
'ReLU'
),
loss_decode
=
dict
(
type
=
'mmdet.CrossEntropyLoss'
,
use_sigmoid
=
False
,
class_weight
=
None
,
# should be modified with dataset
loss_weight
=
1.0
)),
# correlation loss to regularize PAConv's kernel weights
loss_regularization
=
dict
(
type
=
'PAConvRegularizationLoss'
,
reduction
=
'sum'
,
loss_weight
=
10.0
),
# model training and testing settings
train_cfg
=
dict
(),
test_cfg
=
dict
(
mode
=
'slide'
))
mmde/configs/_base_/models/parta2.py
0 → 100644
View file @
eb1107e4
# model settings
voxel_size
=
[
0.05
,
0.05
,
0.1
]
point_cloud_range
=
[
0
,
-
40
,
-
3
,
70.4
,
40
,
1
]
model
=
dict
(
type
=
'PartA2'
,
data_preprocessor
=
dict
(
type
=
'Det3DDataPreprocessor'
,
voxel
=
True
,
voxel_layer
=
dict
(
max_num_points
=
5
,
# max_points_per_voxel
point_cloud_range
=
point_cloud_range
,
voxel_size
=
voxel_size
,
max_voxels
=
(
16000
,
40000
))),
voxel_encoder
=
dict
(
type
=
'HardSimpleVFE'
),
middle_encoder
=
dict
(
type
=
'SparseUNet'
,
in_channels
=
4
,
sparse_shape
=
[
41
,
1600
,
1408
],
order
=
(
'conv'
,
'norm'
,
'act'
)),
backbone
=
dict
(
type
=
'SECOND'
,
in_channels
=
256
,
layer_nums
=
[
5
,
5
],
layer_strides
=
[
1
,
2
],
out_channels
=
[
128
,
256
]),
neck
=
dict
(
type
=
'SECONDFPN'
,
in_channels
=
[
128
,
256
],
upsample_strides
=
[
1
,
2
],
out_channels
=
[
256
,
256
]),
rpn_head
=
dict
(
type
=
'PartA2RPNHead'
,
num_classes
=
3
,
in_channels
=
512
,
feat_channels
=
512
,
use_direction_classifier
=
True
,
anchor_generator
=
dict
(
type
=
'Anchor3DRangeGenerator'
,
ranges
=
[[
0
,
-
40.0
,
-
0.6
,
70.4
,
40.0
,
-
0.6
],
[
0
,
-
40.0
,
-
0.6
,
70.4
,
40.0
,
-
0.6
],
[
0
,
-
40.0
,
-
1.78
,
70.4
,
40.0
,
-
1.78
]],
sizes
=
[[
0.8
,
0.6
,
1.73
],
[
1.76
,
0.6
,
1.73
],
[
3.9
,
1.6
,
1.56
]],
rotations
=
[
0
,
1.57
],
reshape_out
=
False
),
diff_rad_by_sin
=
True
,
assigner_per_size
=
True
,
assign_per_class
=
True
,
bbox_coder
=
dict
(
type
=
'DeltaXYZWLHRBBoxCoder'
),
loss_cls
=
dict
(
type
=
'mmdet.FocalLoss'
,
use_sigmoid
=
True
,
gamma
=
2.0
,
alpha
=
0.25
,
loss_weight
=
1.0
),
loss_bbox
=
dict
(
type
=
'mmdet.SmoothL1Loss'
,
beta
=
1.0
/
9.0
,
loss_weight
=
2.0
),
loss_dir
=
dict
(
type
=
'mmdet.CrossEntropyLoss'
,
use_sigmoid
=
False
,
loss_weight
=
0.2
)),
roi_head
=
dict
(
type
=
'PartAggregationROIHead'
,
num_classes
=
3
,
semantic_head
=
dict
(
type
=
'PointwiseSemanticHead'
,
in_channels
=
16
,
extra_width
=
0.2
,
seg_score_thr
=
0.3
,
num_classes
=
3
,
loss_seg
=
dict
(
type
=
'mmdet.FocalLoss'
,
use_sigmoid
=
True
,
reduction
=
'sum'
,
gamma
=
2.0
,
alpha
=
0.25
,
loss_weight
=
1.0
),
loss_part
=
dict
(
type
=
'mmdet.CrossEntropyLoss'
,
use_sigmoid
=
True
,
loss_weight
=
1.0
)),
seg_roi_extractor
=
dict
(
type
=
'Single3DRoIAwareExtractor'
,
roi_layer
=
dict
(
type
=
'RoIAwarePool3d'
,
out_size
=
14
,
max_pts_per_voxel
=
128
,
mode
=
'max'
)),
bbox_roi_extractor
=
dict
(
type
=
'Single3DRoIAwareExtractor'
,
roi_layer
=
dict
(
type
=
'RoIAwarePool3d'
,
out_size
=
14
,
max_pts_per_voxel
=
128
,
mode
=
'avg'
)),
bbox_head
=
dict
(
type
=
'PartA2BboxHead'
,
num_classes
=
3
,
seg_in_channels
=
16
,
part_in_channels
=
4
,
seg_conv_channels
=
[
64
,
64
],
part_conv_channels
=
[
64
,
64
],
merge_conv_channels
=
[
128
,
128
],
down_conv_channels
=
[
128
,
256
],
bbox_coder
=
dict
(
type
=
'DeltaXYZWLHRBBoxCoder'
),
shared_fc_channels
=
[
256
,
512
,
512
,
512
],
cls_channels
=
[
256
,
256
],
reg_channels
=
[
256
,
256
],
dropout_ratio
=
0.1
,
roi_feat_size
=
14
,
with_corner_loss
=
True
,
loss_bbox
=
dict
(
type
=
'mmdet.SmoothL1Loss'
,
beta
=
1.0
/
9.0
,
reduction
=
'sum'
,
loss_weight
=
1.0
),
loss_cls
=
dict
(
type
=
'mmdet.CrossEntropyLoss'
,
use_sigmoid
=
True
,
reduction
=
'sum'
,
loss_weight
=
1.0
))),
# model training and testing settings
train_cfg
=
dict
(
rpn
=
dict
(
assigner
=
[
dict
(
# for Pedestrian
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'BboxOverlapsNearest3D'
),
pos_iou_thr
=
0.5
,
neg_iou_thr
=
0.35
,
min_pos_iou
=
0.35
,
ignore_iof_thr
=-
1
),
dict
(
# for Cyclist
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'BboxOverlapsNearest3D'
),
pos_iou_thr
=
0.5
,
neg_iou_thr
=
0.35
,
min_pos_iou
=
0.35
,
ignore_iof_thr
=-
1
),
dict
(
# for Car
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'BboxOverlapsNearest3D'
),
pos_iou_thr
=
0.6
,
neg_iou_thr
=
0.45
,
min_pos_iou
=
0.45
,
ignore_iof_thr
=-
1
)
],
allowed_border
=
0
,
pos_weight
=-
1
,
debug
=
False
),
rpn_proposal
=
dict
(
nms_pre
=
9000
,
nms_post
=
512
,
max_num
=
512
,
nms_thr
=
0.8
,
score_thr
=
0
,
use_rotate_nms
=
False
),
rcnn
=
dict
(
assigner
=
[
dict
(
# for Pedestrian
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'BboxOverlaps3D'
,
coordinate
=
'lidar'
),
pos_iou_thr
=
0.55
,
neg_iou_thr
=
0.55
,
min_pos_iou
=
0.55
,
ignore_iof_thr
=-
1
),
dict
(
# for Cyclist
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'BboxOverlaps3D'
,
coordinate
=
'lidar'
),
pos_iou_thr
=
0.55
,
neg_iou_thr
=
0.55
,
min_pos_iou
=
0.55
,
ignore_iof_thr
=-
1
),
dict
(
# for Car
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'BboxOverlaps3D'
,
coordinate
=
'lidar'
),
pos_iou_thr
=
0.55
,
neg_iou_thr
=
0.55
,
min_pos_iou
=
0.55
,
ignore_iof_thr
=-
1
)
],
sampler
=
dict
(
type
=
'IoUNegPiecewiseSampler'
,
num
=
128
,
pos_fraction
=
0.55
,
neg_piece_fractions
=
[
0.8
,
0.2
],
neg_iou_piece_thrs
=
[
0.55
,
0.1
],
neg_pos_ub
=-
1
,
add_gt_as_proposals
=
False
,
return_iou
=
True
),
cls_pos_thr
=
0.75
,
cls_neg_thr
=
0.25
)),
test_cfg
=
dict
(
rpn
=
dict
(
nms_pre
=
1024
,
nms_post
=
100
,
max_num
=
100
,
nms_thr
=
0.7
,
score_thr
=
0
,
use_rotate_nms
=
True
),
rcnn
=
dict
(
use_rotate_nms
=
True
,
use_raw_score
=
True
,
nms_thr
=
0.01
,
score_thr
=
0.1
)))
mmde/configs/_base_/models/pgd.py
0 → 100644
View file @
eb1107e4
_base_
=
'./fcos3d.py'
# model settings
model
=
dict
(
bbox_head
=
dict
(
_delete_
=
True
,
type
=
'PGDHead'
,
num_classes
=
10
,
in_channels
=
256
,
stacked_convs
=
2
,
feat_channels
=
256
,
use_direction_classifier
=
True
,
diff_rad_by_sin
=
True
,
pred_attrs
=
True
,
pred_velo
=
True
,
pred_bbox2d
=
True
,
pred_keypoints
=
False
,
dir_offset
=
0.7854
,
# pi/4
strides
=
[
8
,
16
,
32
,
64
,
128
],
group_reg_dims
=
(
2
,
1
,
3
,
1
,
2
),
# offset, depth, size, rot, velo
cls_branch
=
(
256
,
),
reg_branch
=
(
(
256
,
),
# offset
(
256
,
),
# depth
(
256
,
),
# size
(
256
,
),
# rot
()
# velo
),
dir_branch
=
(
256
,
),
attr_branch
=
(
256
,
),
loss_cls
=
dict
(
type
=
'mmdet.FocalLoss'
,
use_sigmoid
=
True
,
gamma
=
2.0
,
alpha
=
0.25
,
loss_weight
=
1.0
),
loss_bbox
=
dict
(
type
=
'mmdet.SmoothL1Loss'
,
beta
=
1.0
/
9.0
,
loss_weight
=
1.0
),
loss_dir
=
dict
(
type
=
'mmdet.CrossEntropyLoss'
,
use_sigmoid
=
False
,
loss_weight
=
1.0
),
loss_attr
=
dict
(
type
=
'mmdet.CrossEntropyLoss'
,
use_sigmoid
=
False
,
loss_weight
=
1.0
),
loss_centerness
=
dict
(
type
=
'mmdet.CrossEntropyLoss'
,
use_sigmoid
=
True
,
loss_weight
=
1.0
),
norm_on_bbox
=
True
,
centerness_on_reg
=
True
,
center_sampling
=
True
,
conv_bias
=
True
,
dcn_on_last_conv
=
True
,
use_depth_classifier
=
True
,
depth_branch
=
(
256
,
),
depth_range
=
(
0
,
50
),
depth_unit
=
10
,
division
=
'uniform'
,
depth_bins
=
6
,
bbox_coder
=
dict
(
type
=
'PGDBBoxCoder'
,
code_size
=
9
)),
test_cfg
=
dict
(
nms_pre
=
1000
,
nms_thr
=
0.8
,
score_thr
=
0.01
,
max_per_img
=
200
))
mmde/configs/_base_/models/point_rcnn.py
0 → 100644
View file @
eb1107e4
model
=
dict
(
type
=
'PointRCNN'
,
data_preprocessor
=
dict
(
type
=
'Det3DDataPreprocessor'
),
backbone
=
dict
(
type
=
'PointNet2SAMSG'
,
in_channels
=
4
,
num_points
=
(
4096
,
1024
,
256
,
64
),
radii
=
((
0.1
,
0.5
),
(
0.5
,
1.0
),
(
1.0
,
2.0
),
(
2.0
,
4.0
)),
num_samples
=
((
16
,
32
),
(
16
,
32
),
(
16
,
32
),
(
16
,
32
)),
sa_channels
=
(((
16
,
16
,
32
),
(
32
,
32
,
64
)),
((
64
,
64
,
128
),
(
64
,
96
,
128
)),
((
128
,
196
,
256
),
(
128
,
196
,
256
)),
((
256
,
256
,
512
),
(
256
,
384
,
512
))),
fps_mods
=
((
'D-FPS'
),
(
'D-FPS'
),
(
'D-FPS'
),
(
'D-FPS'
)),
fps_sample_range_lists
=
((
-
1
),
(
-
1
),
(
-
1
),
(
-
1
)),
aggregation_channels
=
(
None
,
None
,
None
,
None
),
dilated_group
=
(
False
,
False
,
False
,
False
),
out_indices
=
(
0
,
1
,
2
,
3
),
norm_cfg
=
dict
(
type
=
'BN2d'
,
eps
=
1e-3
,
momentum
=
0.1
),
sa_cfg
=
dict
(
type
=
'PointSAModuleMSG'
,
pool_mod
=
'max'
,
use_xyz
=
True
,
normalize_xyz
=
False
)),
neck
=
dict
(
type
=
'PointNetFPNeck'
,
fp_channels
=
((
1536
,
512
,
512
),
(
768
,
512
,
512
),
(
608
,
256
,
256
),
(
257
,
128
,
128
))),
rpn_head
=
dict
(
type
=
'PointRPNHead'
,
num_classes
=
3
,
enlarge_width
=
0.1
,
pred_layer_cfg
=
dict
(
in_channels
=
128
,
cls_linear_channels
=
(
256
,
256
),
reg_linear_channels
=
(
256
,
256
)),
cls_loss
=
dict
(
type
=
'mmdet.FocalLoss'
,
use_sigmoid
=
True
,
reduction
=
'sum'
,
gamma
=
2.0
,
alpha
=
0.25
,
loss_weight
=
1.0
),
bbox_loss
=
dict
(
type
=
'mmdet.SmoothL1Loss'
,
beta
=
1.0
/
9.0
,
reduction
=
'sum'
,
loss_weight
=
1.0
),
bbox_coder
=
dict
(
type
=
'PointXYZWHLRBBoxCoder'
,
code_size
=
8
,
# code_size: (center residual (3), size regression (3),
# torch.cos(yaw) (1), torch.sin(yaw) (1)
use_mean_size
=
True
,
mean_size
=
[[
3.9
,
1.6
,
1.56
],
[
0.8
,
0.6
,
1.73
],
[
1.76
,
0.6
,
1.73
]])),
roi_head
=
dict
(
type
=
'PointRCNNRoIHead'
,
bbox_roi_extractor
=
dict
(
type
=
'Single3DRoIPointExtractor'
,
roi_layer
=
dict
(
type
=
'RoIPointPool3d'
,
num_sampled_points
=
512
)),
bbox_head
=
dict
(
type
=
'PointRCNNBboxHead'
,
num_classes
=
1
,
loss_bbox
=
dict
(
type
=
'mmdet.SmoothL1Loss'
,
beta
=
1.0
/
9.0
,
reduction
=
'sum'
,
loss_weight
=
1.0
),
loss_cls
=
dict
(
type
=
'mmdet.CrossEntropyLoss'
,
use_sigmoid
=
True
,
reduction
=
'sum'
,
loss_weight
=
1.0
),
pred_layer_cfg
=
dict
(
in_channels
=
512
,
cls_conv_channels
=
(
256
,
256
),
reg_conv_channels
=
(
256
,
256
),
bias
=
True
),
in_channels
=
5
,
# 5 = 3 (xyz) + scores + depth
mlp_channels
=
[
128
,
128
],
num_points
=
(
128
,
32
,
-
1
),
radius
=
(
0.2
,
0.4
,
100
),
num_samples
=
(
16
,
16
,
16
),
sa_channels
=
((
128
,
128
,
128
),
(
128
,
128
,
256
),
(
256
,
256
,
512
)),
with_corner_loss
=
True
),
depth_normalizer
=
70.0
),
# model training and testing settings
train_cfg
=
dict
(
pos_distance_thr
=
10.0
,
rpn
=
dict
(
rpn_proposal
=
dict
(
use_rotate_nms
=
True
,
score_thr
=
None
,
iou_thr
=
0.8
,
nms_pre
=
9000
,
nms_post
=
512
)),
rcnn
=
dict
(
assigner
=
[
dict
(
# for Pedestrian
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'BboxOverlaps3D'
,
coordinate
=
'lidar'
),
pos_iou_thr
=
0.55
,
neg_iou_thr
=
0.55
,
min_pos_iou
=
0.55
,
ignore_iof_thr
=-
1
,
match_low_quality
=
False
),
dict
(
# for Cyclist
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'BboxOverlaps3D'
,
coordinate
=
'lidar'
),
pos_iou_thr
=
0.55
,
neg_iou_thr
=
0.55
,
min_pos_iou
=
0.55
,
ignore_iof_thr
=-
1
,
match_low_quality
=
False
),
dict
(
# for Car
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'BboxOverlaps3D'
,
coordinate
=
'lidar'
),
pos_iou_thr
=
0.55
,
neg_iou_thr
=
0.55
,
min_pos_iou
=
0.55
,
ignore_iof_thr
=-
1
,
match_low_quality
=
False
)
],
sampler
=
dict
(
type
=
'IoUNegPiecewiseSampler'
,
num
=
128
,
pos_fraction
=
0.5
,
neg_piece_fractions
=
[
0.8
,
0.2
],
neg_iou_piece_thrs
=
[
0.55
,
0.1
],
neg_pos_ub
=-
1
,
add_gt_as_proposals
=
False
,
return_iou
=
True
),
cls_pos_thr
=
0.7
,
cls_neg_thr
=
0.25
)),
test_cfg
=
dict
(
rpn
=
dict
(
nms_cfg
=
dict
(
use_rotate_nms
=
True
,
iou_thr
=
0.85
,
nms_pre
=
9000
,
nms_post
=
512
,
score_thr
=
None
)),
rcnn
=
dict
(
use_rotate_nms
=
True
,
nms_thr
=
0.1
,
score_thr
=
0.1
)))
mmde/configs/_base_/models/pointnet2_msg.py
0 → 100644
View file @
eb1107e4
_base_
=
'./pointnet2_ssg.py'
# model settings
model
=
dict
(
backbone
=
dict
(
_delete_
=
True
,
type
=
'PointNet2SAMSG'
,
in_channels
=
6
,
# [xyz, rgb], should be modified with dataset
num_points
=
(
1024
,
256
,
64
,
16
),
radii
=
((
0.05
,
0.1
),
(
0.1
,
0.2
),
(
0.2
,
0.4
),
(
0.4
,
0.8
)),
num_samples
=
((
16
,
32
),
(
16
,
32
),
(
16
,
32
),
(
16
,
32
)),
sa_channels
=
(((
16
,
16
,
32
),
(
32
,
32
,
64
)),
((
64
,
64
,
128
),
(
64
,
96
,
128
)),
((
128
,
196
,
256
),
(
128
,
196
,
256
)),
((
256
,
256
,
512
),
(
256
,
384
,
512
))),
aggregation_channels
=
(
None
,
None
,
None
,
None
),
fps_mods
=
((
'D-FPS'
),
(
'D-FPS'
),
(
'D-FPS'
),
(
'D-FPS'
)),
fps_sample_range_lists
=
((
-
1
),
(
-
1
),
(
-
1
),
(
-
1
)),
dilated_group
=
(
False
,
False
,
False
,
False
),
out_indices
=
(
0
,
1
,
2
,
3
),
sa_cfg
=
dict
(
type
=
'PointSAModuleMSG'
,
pool_mod
=
'max'
,
use_xyz
=
True
,
normalize_xyz
=
False
)),
decode_head
=
dict
(
fp_channels
=
((
1536
,
256
,
256
),
(
512
,
256
,
256
),
(
352
,
256
,
128
),
(
128
,
128
,
128
,
128
))))
mmde/configs/_base_/models/pointnet2_ssg.py
0 → 100644
View file @
eb1107e4
# model settings
model
=
dict
(
type
=
'EncoderDecoder3D'
,
data_preprocessor
=
dict
(
type
=
'Det3DDataPreprocessor'
),
backbone
=
dict
(
type
=
'PointNet2SASSG'
,
in_channels
=
6
,
# [xyz, rgb], should be modified with dataset
num_points
=
(
1024
,
256
,
64
,
16
),
radius
=
(
0.1
,
0.2
,
0.4
,
0.8
),
num_samples
=
(
32
,
32
,
32
,
32
),
sa_channels
=
((
32
,
32
,
64
),
(
64
,
64
,
128
),
(
128
,
128
,
256
),
(
256
,
256
,
512
)),
fp_channels
=
(),
norm_cfg
=
dict
(
type
=
'BN2d'
),
sa_cfg
=
dict
(
type
=
'PointSAModule'
,
pool_mod
=
'max'
,
use_xyz
=
True
,
normalize_xyz
=
False
)),
decode_head
=
dict
(
type
=
'PointNet2Head'
,
fp_channels
=
((
768
,
256
,
256
),
(
384
,
256
,
256
),
(
320
,
256
,
128
),
(
128
,
128
,
128
,
128
)),
channels
=
128
,
dropout_ratio
=
0.5
,
conv_cfg
=
dict
(
type
=
'Conv1d'
),
norm_cfg
=
dict
(
type
=
'BN1d'
),
act_cfg
=
dict
(
type
=
'ReLU'
),
loss_decode
=
dict
(
type
=
'mmdet.CrossEntropyLoss'
,
use_sigmoid
=
False
,
class_weight
=
None
,
# should be modified with dataset
loss_weight
=
1.0
)),
# model training and testing settings
train_cfg
=
dict
(),
test_cfg
=
dict
(
mode
=
'slide'
))
mmde/configs/_base_/models/pointpillars_hv_fpn_lyft.py
0 → 100644
View file @
eb1107e4
_base_
=
'./pointpillars_hv_fpn_nus.py'
# model settings (based on nuScenes model settings)
# Voxel size for voxel encoder
# Usually voxel size is changed consistently with the point cloud range
# If point cloud range is modified, do remember to change all related
# keys in the config.
model
=
dict
(
data_preprocessor
=
dict
(
voxel_layer
=
dict
(
max_num_points
=
20
,
point_cloud_range
=
[
-
80
,
-
80
,
-
5
,
80
,
80
,
3
],
max_voxels
=
(
60000
,
60000
))),
pts_voxel_encoder
=
dict
(
feat_channels
=
[
64
],
point_cloud_range
=
[
-
80
,
-
80
,
-
5
,
80
,
80
,
3
]),
pts_middle_encoder
=
dict
(
output_shape
=
[
640
,
640
]),
pts_bbox_head
=
dict
(
num_classes
=
9
,
anchor_generator
=
dict
(
ranges
=
[[
-
80
,
-
80
,
-
1.8
,
80
,
80
,
-
1.8
]],
custom_values
=
[]),
bbox_coder
=
dict
(
type
=
'DeltaXYZWLHRBBoxCoder'
,
code_size
=
7
)),
# model training settings (based on nuScenes model settings)
train_cfg
=
dict
(
pts
=
dict
(
code_weight
=
[
1.0
,
1.0
,
1.0
,
1.0
,
1.0
,
1.0
,
1.0
])))
mmde/configs/_base_/models/pointpillars_hv_fpn_nus.py
0 → 100644
View file @
eb1107e4
# model settings
# Voxel size for voxel encoder
# Usually voxel size is changed consistently with the point cloud range
# If point cloud range is modified, do remember to change all related
# keys in the config.
voxel_size
=
[
0.25
,
0.25
,
8
]
model
=
dict
(
type
=
'MVXFasterRCNN'
,
data_preprocessor
=
dict
(
type
=
'Det3DDataPreprocessor'
,
voxel
=
True
,
voxel_layer
=
dict
(
max_num_points
=
64
,
point_cloud_range
=
[
-
50
,
-
50
,
-
5
,
50
,
50
,
3
],
voxel_size
=
voxel_size
,
max_voxels
=
(
30000
,
40000
))),
pts_voxel_encoder
=
dict
(
type
=
'HardVFE'
,
in_channels
=
4
,
feat_channels
=
[
64
,
64
],
with_distance
=
False
,
voxel_size
=
voxel_size
,
with_cluster_center
=
True
,
with_voxel_center
=
True
,
point_cloud_range
=
[
-
50
,
-
50
,
-
5
,
50
,
50
,
3
],
norm_cfg
=
dict
(
type
=
'naiveSyncBN1d'
,
eps
=
1e-3
,
momentum
=
0.01
)),
pts_middle_encoder
=
dict
(
type
=
'PointPillarsScatter'
,
in_channels
=
64
,
output_shape
=
[
400
,
400
]),
pts_backbone
=
dict
(
type
=
'SECOND'
,
in_channels
=
64
,
norm_cfg
=
dict
(
type
=
'naiveSyncBN2d'
,
eps
=
1e-3
,
momentum
=
0.01
),
layer_nums
=
[
3
,
5
,
5
],
layer_strides
=
[
2
,
2
,
2
],
out_channels
=
[
64
,
128
,
256
]),
pts_neck
=
dict
(
type
=
'mmdet.FPN'
,
norm_cfg
=
dict
(
type
=
'naiveSyncBN2d'
,
eps
=
1e-3
,
momentum
=
0.01
),
act_cfg
=
dict
(
type
=
'ReLU'
),
in_channels
=
[
64
,
128
,
256
],
out_channels
=
256
,
start_level
=
0
,
num_outs
=
3
),
pts_bbox_head
=
dict
(
type
=
'Anchor3DHead'
,
num_classes
=
10
,
in_channels
=
256
,
feat_channels
=
256
,
use_direction_classifier
=
True
,
anchor_generator
=
dict
(
type
=
'AlignedAnchor3DRangeGenerator'
,
ranges
=
[[
-
50
,
-
50
,
-
1.8
,
50
,
50
,
-
1.8
]],
scales
=
[
1
,
2
,
4
],
sizes
=
[
[
2.5981
,
0.8660
,
1.
],
# 1.5 / sqrt(3)
[
1.7321
,
0.5774
,
1.
],
# 1 / sqrt(3)
[
1.
,
1.
,
1.
],
[
0.4
,
0.4
,
1
],
],
custom_values
=
[
0
,
0
],
rotations
=
[
0
,
1.57
],
reshape_out
=
True
),
assigner_per_size
=
False
,
diff_rad_by_sin
=
True
,
dir_offset
=-
0.7854
,
# -pi / 4
bbox_coder
=
dict
(
type
=
'DeltaXYZWLHRBBoxCoder'
,
code_size
=
9
),
loss_cls
=
dict
(
type
=
'mmdet.FocalLoss'
,
use_sigmoid
=
True
,
gamma
=
2.0
,
alpha
=
0.25
,
loss_weight
=
1.0
),
loss_bbox
=
dict
(
type
=
'mmdet.SmoothL1Loss'
,
beta
=
1.0
/
9.0
,
loss_weight
=
1.0
),
loss_dir
=
dict
(
type
=
'mmdet.CrossEntropyLoss'
,
use_sigmoid
=
False
,
loss_weight
=
0.2
)),
# model training and testing settings
train_cfg
=
dict
(
pts
=
dict
(
assigner
=
dict
(
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'BboxOverlapsNearest3D'
),
pos_iou_thr
=
0.6
,
neg_iou_thr
=
0.3
,
min_pos_iou
=
0.3
,
ignore_iof_thr
=-
1
),
allowed_border
=
0
,
code_weight
=
[
1.0
,
1.0
,
1.0
,
1.0
,
1.0
,
1.0
,
1.0
,
0.2
,
0.2
],
pos_weight
=-
1
,
debug
=
False
)),
test_cfg
=
dict
(
pts
=
dict
(
use_rotate_nms
=
True
,
nms_across_levels
=
False
,
nms_pre
=
1000
,
nms_thr
=
0.2
,
score_thr
=
0.05
,
min_bbox_size
=
0
,
max_num
=
500
)))
mmde/configs/_base_/models/pointpillars_hv_fpn_range100_lyft.py
0 → 100644
View file @
eb1107e4
_base_
=
'./pointpillars_hv_fpn_nus.py'
# model settings (based on nuScenes model settings)
# Voxel size for voxel encoder
# Usually voxel size is changed consistently with the point cloud range
# If point cloud range is modified, do remember to change all related
# keys in the config.
model
=
dict
(
data_preprocessor
=
dict
(
voxel_layer
=
dict
(
max_num_points
=
20
,
point_cloud_range
=
[
-
100
,
-
100
,
-
5
,
100
,
100
,
3
],
max_voxels
=
(
60000
,
60000
))),
pts_voxel_encoder
=
dict
(
feat_channels
=
[
64
],
point_cloud_range
=
[
-
100
,
-
100
,
-
5
,
100
,
100
,
3
]),
pts_middle_encoder
=
dict
(
output_shape
=
[
800
,
800
]),
pts_bbox_head
=
dict
(
num_classes
=
9
,
anchor_generator
=
dict
(
ranges
=
[[
-
100
,
-
100
,
-
1.8
,
100
,
100
,
-
1.8
]],
custom_values
=
[]),
bbox_coder
=
dict
(
type
=
'DeltaXYZWLHRBBoxCoder'
,
code_size
=
7
)),
# model training settings (based on nuScenes model settings)
train_cfg
=
dict
(
pts
=
dict
(
code_weight
=
[
1.0
,
1.0
,
1.0
,
1.0
,
1.0
,
1.0
,
1.0
])))
mmde/configs/_base_/models/pointpillars_hv_secfpn_kitti.py
0 → 100644
View file @
eb1107e4
voxel_size
=
[
0.16
,
0.16
,
4
]
model
=
dict
(
type
=
'VoxelNet'
,
data_preprocessor
=
dict
(
type
=
'Det3DDataPreprocessor'
,
voxel
=
True
,
voxel_layer
=
dict
(
max_num_points
=
32
,
# max_points_per_voxel
point_cloud_range
=
[
0
,
-
39.68
,
-
3
,
69.12
,
39.68
,
1
],
voxel_size
=
voxel_size
,
max_voxels
=
(
16000
,
40000
))),
voxel_encoder
=
dict
(
type
=
'PillarFeatureNet'
,
in_channels
=
4
,
feat_channels
=
[
64
],
with_distance
=
False
,
voxel_size
=
voxel_size
,
point_cloud_range
=
[
0
,
-
39.68
,
-
3
,
69.12
,
39.68
,
1
]),
middle_encoder
=
dict
(
type
=
'PointPillarsScatter'
,
in_channels
=
64
,
output_shape
=
[
496
,
432
]),
backbone
=
dict
(
type
=
'SECOND'
,
in_channels
=
64
,
layer_nums
=
[
3
,
5
,
5
],
layer_strides
=
[
2
,
2
,
2
],
out_channels
=
[
64
,
128
,
256
]),
neck
=
dict
(
type
=
'SECONDFPN'
,
in_channels
=
[
64
,
128
,
256
],
upsample_strides
=
[
1
,
2
,
4
],
out_channels
=
[
128
,
128
,
128
]),
bbox_head
=
dict
(
type
=
'Anchor3DHead'
,
num_classes
=
3
,
in_channels
=
384
,
feat_channels
=
384
,
use_direction_classifier
=
True
,
assign_per_class
=
True
,
anchor_generator
=
dict
(
type
=
'AlignedAnchor3DRangeGenerator'
,
ranges
=
[
[
0
,
-
39.68
,
-
0.6
,
69.12
,
39.68
,
-
0.6
],
[
0
,
-
39.68
,
-
0.6
,
69.12
,
39.68
,
-
0.6
],
[
0
,
-
39.68
,
-
1.78
,
69.12
,
39.68
,
-
1.78
],
],
sizes
=
[[
0.8
,
0.6
,
1.73
],
[
1.76
,
0.6
,
1.73
],
[
3.9
,
1.6
,
1.56
]],
rotations
=
[
0
,
1.57
],
reshape_out
=
False
),
diff_rad_by_sin
=
True
,
bbox_coder
=
dict
(
type
=
'DeltaXYZWLHRBBoxCoder'
),
loss_cls
=
dict
(
type
=
'mmdet.FocalLoss'
,
use_sigmoid
=
True
,
gamma
=
2.0
,
alpha
=
0.25
,
loss_weight
=
1.0
),
loss_bbox
=
dict
(
type
=
'mmdet.SmoothL1Loss'
,
beta
=
1.0
/
9.0
,
loss_weight
=
2.0
),
loss_dir
=
dict
(
type
=
'mmdet.CrossEntropyLoss'
,
use_sigmoid
=
False
,
loss_weight
=
0.2
)),
# model training and testing settings
train_cfg
=
dict
(
assigner
=
[
dict
(
# for Pedestrian
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'mmdet3d.BboxOverlapsNearest3D'
),
pos_iou_thr
=
0.5
,
neg_iou_thr
=
0.35
,
min_pos_iou
=
0.35
,
ignore_iof_thr
=-
1
),
dict
(
# for Cyclist
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'mmdet3d.BboxOverlapsNearest3D'
),
pos_iou_thr
=
0.5
,
neg_iou_thr
=
0.35
,
min_pos_iou
=
0.35
,
ignore_iof_thr
=-
1
),
dict
(
# for Car
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'mmdet3d.BboxOverlapsNearest3D'
),
pos_iou_thr
=
0.6
,
neg_iou_thr
=
0.45
,
min_pos_iou
=
0.45
,
ignore_iof_thr
=-
1
),
],
allowed_border
=
0
,
pos_weight
=-
1
,
debug
=
False
),
test_cfg
=
dict
(
use_rotate_nms
=
True
,
nms_across_levels
=
False
,
nms_thr
=
0.01
,
score_thr
=
0.1
,
min_bbox_size
=
0
,
nms_pre
=
100
,
max_num
=
50
))
mmde/configs/_base_/models/pointpillars_hv_secfpn_waymo.py
0 → 100644
View file @
eb1107e4
# model settings
# Voxel size for voxel encoder
# Usually voxel size is changed consistently with the point cloud range
# If point cloud range is modified, do remember to change all related
# keys in the config.
voxel_size
=
[
0.32
,
0.32
,
6
]
model
=
dict
(
type
=
'MVXFasterRCNN'
,
data_preprocessor
=
dict
(
type
=
'Det3DDataPreprocessor'
,
voxel
=
True
,
voxel_layer
=
dict
(
max_num_points
=
20
,
point_cloud_range
=
[
-
74.88
,
-
74.88
,
-
2
,
74.88
,
74.88
,
4
],
voxel_size
=
voxel_size
,
max_voxels
=
(
32000
,
32000
))),
pts_voxel_encoder
=
dict
(
type
=
'HardVFE'
,
in_channels
=
5
,
feat_channels
=
[
64
],
with_distance
=
False
,
voxel_size
=
voxel_size
,
with_cluster_center
=
True
,
with_voxel_center
=
True
,
point_cloud_range
=
[
-
74.88
,
-
74.88
,
-
2
,
74.88
,
74.88
,
4
],
norm_cfg
=
dict
(
type
=
'naiveSyncBN1d'
,
eps
=
1e-3
,
momentum
=
0.01
)),
pts_middle_encoder
=
dict
(
type
=
'PointPillarsScatter'
,
in_channels
=
64
,
output_shape
=
[
468
,
468
]),
pts_backbone
=
dict
(
type
=
'SECOND'
,
in_channels
=
64
,
norm_cfg
=
dict
(
type
=
'naiveSyncBN2d'
,
eps
=
1e-3
,
momentum
=
0.01
),
layer_nums
=
[
3
,
5
,
5
],
layer_strides
=
[
1
,
2
,
2
],
out_channels
=
[
64
,
128
,
256
]),
pts_neck
=
dict
(
type
=
'SECONDFPN'
,
norm_cfg
=
dict
(
type
=
'naiveSyncBN2d'
,
eps
=
1e-3
,
momentum
=
0.01
),
in_channels
=
[
64
,
128
,
256
],
upsample_strides
=
[
1
,
2
,
4
],
out_channels
=
[
128
,
128
,
128
]),
pts_bbox_head
=
dict
(
type
=
'Anchor3DHead'
,
num_classes
=
3
,
in_channels
=
384
,
feat_channels
=
384
,
use_direction_classifier
=
True
,
anchor_generator
=
dict
(
type
=
'AlignedAnchor3DRangeGenerator'
,
ranges
=
[[
-
74.88
,
-
74.88
,
-
0.0345
,
74.88
,
74.88
,
-
0.0345
],
[
-
74.88
,
-
74.88
,
0
,
74.88
,
74.88
,
0
],
[
-
74.88
,
-
74.88
,
-
0.1188
,
74.88
,
74.88
,
-
0.1188
]],
sizes
=
[
[
4.73
,
2.08
,
1.77
],
# car
[
0.91
,
0.84
,
1.74
],
# pedestrian
[
1.81
,
0.84
,
1.77
]
# cyclist
],
rotations
=
[
0
,
1.57
],
reshape_out
=
False
),
diff_rad_by_sin
=
True
,
dir_offset
=-
0.7854
,
# -pi / 4
bbox_coder
=
dict
(
type
=
'DeltaXYZWLHRBBoxCoder'
,
code_size
=
7
),
loss_cls
=
dict
(
type
=
'mmdet.FocalLoss'
,
use_sigmoid
=
True
,
gamma
=
2.0
,
alpha
=
0.25
,
loss_weight
=
1.0
),
loss_bbox
=
dict
(
type
=
'mmdet.SmoothL1Loss'
,
beta
=
1.0
/
9.0
,
loss_weight
=
1.0
),
loss_dir
=
dict
(
type
=
'mmdet.CrossEntropyLoss'
,
use_sigmoid
=
False
,
loss_weight
=
0.2
)),
# model training and testing settings
train_cfg
=
dict
(
pts
=
dict
(
assigner
=
[
dict
(
# car
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'BboxOverlapsNearest3D'
),
pos_iou_thr
=
0.55
,
neg_iou_thr
=
0.4
,
min_pos_iou
=
0.4
,
ignore_iof_thr
=-
1
),
dict
(
# pedestrian
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'BboxOverlapsNearest3D'
),
pos_iou_thr
=
0.5
,
neg_iou_thr
=
0.3
,
min_pos_iou
=
0.3
,
ignore_iof_thr
=-
1
),
dict
(
# cyclist
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'BboxOverlapsNearest3D'
),
pos_iou_thr
=
0.5
,
neg_iou_thr
=
0.3
,
min_pos_iou
=
0.3
,
ignore_iof_thr
=-
1
),
],
allowed_border
=
0
,
code_weight
=
[
1.0
,
1.0
,
1.0
,
1.0
,
1.0
,
1.0
,
1.0
],
pos_weight
=-
1
,
debug
=
False
)),
test_cfg
=
dict
(
pts
=
dict
(
use_rotate_nms
=
True
,
nms_across_levels
=
False
,
nms_pre
=
4096
,
nms_thr
=
0.25
,
score_thr
=
0.1
,
min_bbox_size
=
0
,
max_num
=
500
)))
mmde/configs/_base_/models/second_hv_secfpn_kitti.py
0 → 100644
View file @
eb1107e4
voxel_size
=
[
0.05
,
0.05
,
0.1
]
model
=
dict
(
type
=
'VoxelNet'
,
data_preprocessor
=
dict
(
type
=
'Det3DDataPreprocessor'
,
voxel
=
True
,
voxel_layer
=
dict
(
max_num_points
=
5
,
point_cloud_range
=
[
0
,
-
40
,
-
3
,
70.4
,
40
,
1
],
voxel_size
=
voxel_size
,
max_voxels
=
(
16000
,
40000
))),
voxel_encoder
=
dict
(
type
=
'HardSimpleVFE'
),
middle_encoder
=
dict
(
type
=
'SparseEncoder'
,
in_channels
=
4
,
sparse_shape
=
[
41
,
1600
,
1408
],
order
=
(
'conv'
,
'norm'
,
'act'
)),
backbone
=
dict
(
type
=
'SECOND'
,
in_channels
=
256
,
layer_nums
=
[
5
,
5
],
layer_strides
=
[
1
,
2
],
out_channels
=
[
128
,
256
]),
neck
=
dict
(
type
=
'SECONDFPN'
,
in_channels
=
[
128
,
256
],
upsample_strides
=
[
1
,
2
],
out_channels
=
[
256
,
256
]),
bbox_head
=
dict
(
type
=
'Anchor3DHead'
,
num_classes
=
3
,
in_channels
=
512
,
feat_channels
=
512
,
use_direction_classifier
=
True
,
anchor_generator
=
dict
(
type
=
'Anchor3DRangeGenerator'
,
ranges
=
[
[
0
,
-
40.0
,
-
0.6
,
70.4
,
40.0
,
-
0.6
],
[
0
,
-
40.0
,
-
0.6
,
70.4
,
40.0
,
-
0.6
],
[
0
,
-
40.0
,
-
1.78
,
70.4
,
40.0
,
-
1.78
],
],
sizes
=
[[
0.8
,
0.6
,
1.73
],
[
1.76
,
0.6
,
1.73
],
[
3.9
,
1.6
,
1.56
]],
rotations
=
[
0
,
1.57
],
reshape_out
=
False
),
diff_rad_by_sin
=
True
,
bbox_coder
=
dict
(
type
=
'DeltaXYZWLHRBBoxCoder'
),
loss_cls
=
dict
(
type
=
'mmdet.FocalLoss'
,
use_sigmoid
=
True
,
gamma
=
2.0
,
alpha
=
0.25
,
loss_weight
=
1.0
),
loss_bbox
=
dict
(
type
=
'mmdet.SmoothL1Loss'
,
beta
=
1.0
/
9.0
,
loss_weight
=
2.0
),
loss_dir
=
dict
(
type
=
'mmdet.CrossEntropyLoss'
,
use_sigmoid
=
False
,
loss_weight
=
0.2
)),
# model training and testing settings
train_cfg
=
dict
(
assigner
=
[
dict
(
# for Pedestrian
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'BboxOverlapsNearest3D'
),
pos_iou_thr
=
0.35
,
neg_iou_thr
=
0.2
,
min_pos_iou
=
0.2
,
ignore_iof_thr
=-
1
),
dict
(
# for Cyclist
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'BboxOverlapsNearest3D'
),
pos_iou_thr
=
0.35
,
neg_iou_thr
=
0.2
,
min_pos_iou
=
0.2
,
ignore_iof_thr
=-
1
),
dict
(
# for Car
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'BboxOverlapsNearest3D'
),
pos_iou_thr
=
0.6
,
neg_iou_thr
=
0.45
,
min_pos_iou
=
0.45
,
ignore_iof_thr
=-
1
),
],
allowed_border
=
0
,
pos_weight
=-
1
,
debug
=
False
),
test_cfg
=
dict
(
use_rotate_nms
=
True
,
nms_across_levels
=
False
,
nms_thr
=
0.01
,
score_thr
=
0.1
,
min_bbox_size
=
0
,
nms_pre
=
100
,
max_num
=
50
))
mmde/configs/_base_/models/second_hv_secfpn_waymo.py
0 → 100644
View file @
eb1107e4
# model settings
# Voxel size for voxel encoder
# Usually voxel size is changed consistently with the point cloud range
# If point cloud range is modified, do remember to change all related
# keys in the config.
voxel_size
=
[
0.08
,
0.08
,
0.1
]
model
=
dict
(
type
=
'MVXFasterRCNN'
,
data_preprocessor
=
dict
(
type
=
'Det3DDataPreprocessor'
,
voxel
=
True
,
voxel_layer
=
dict
(
max_num_points
=
20
,
point_cloud_range
=
[
-
76.8
,
-
51.2
,
-
2
,
76.8
,
51.2
,
4
],
voxel_size
=
voxel_size
,
max_voxels
=
(
80000
,
90000
))),
pts_voxel_encoder
=
dict
(
type
=
'HardSimpleVFE'
,
num_features
=
5
),
pts_middle_encoder
=
dict
(
type
=
'SparseEncoder'
,
in_channels
=
5
,
sparse_shape
=
[
61
,
1280
,
1920
],
order
=
(
'conv'
,
'norm'
,
'act'
)),
pts_backbone
=
dict
(
type
=
'SECOND'
,
in_channels
=
384
,
norm_cfg
=
dict
(
type
=
'naiveSyncBN2d'
,
eps
=
1e-3
,
momentum
=
0.01
),
layer_nums
=
[
5
,
5
],
layer_strides
=
[
1
,
2
],
out_channels
=
[
128
,
256
]),
pts_neck
=
dict
(
type
=
'SECONDFPN'
,
norm_cfg
=
dict
(
type
=
'naiveSyncBN2d'
,
eps
=
1e-3
,
momentum
=
0.01
),
in_channels
=
[
128
,
256
],
upsample_strides
=
[
1
,
2
],
out_channels
=
[
256
,
256
]),
pts_bbox_head
=
dict
(
type
=
'Anchor3DHead'
,
num_classes
=
3
,
in_channels
=
512
,
feat_channels
=
512
,
use_direction_classifier
=
True
,
anchor_generator
=
dict
(
type
=
'AlignedAnchor3DRangeGenerator'
,
ranges
=
[
[
-
76.8
,
-
51.2
,
-
0.0345
,
76.8
,
51.2
,
-
0.0345
],
[
-
76.8
,
-
51.2
,
-
0.1188
,
76.8
,
51.2
,
-
0.1188
],
[
-
76.8
,
-
51.2
,
0
,
76.8
,
51.2
,
0
],
],
sizes
=
[
[
4.73
,
2.08
,
1.77
],
# car
[
1.81
,
0.84
,
1.77
],
# pedestrian
[
0.91
,
0.84
,
1.74
],
# cyclist
],
rotations
=
[
0
,
1.57
],
reshape_out
=
False
),
diff_rad_by_sin
=
True
,
dir_offset
=-
0.7854
,
# -pi / 4
bbox_coder
=
dict
(
type
=
'DeltaXYZWLHRBBoxCoder'
,
code_size
=
7
),
loss_cls
=
dict
(
type
=
'mmdet.FocalLoss'
,
use_sigmoid
=
True
,
gamma
=
2.0
,
alpha
=
0.25
,
loss_weight
=
1.0
),
loss_bbox
=
dict
(
type
=
'mmdet.SmoothL1Loss'
,
beta
=
1.0
/
9.0
,
loss_weight
=
1.0
),
loss_dir
=
dict
(
type
=
'mmdet.CrossEntropyLoss'
,
use_sigmoid
=
False
,
loss_weight
=
0.2
)),
# model training and testing settings
train_cfg
=
dict
(
pts
=
dict
(
assigner
=
[
dict
(
# car
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'BboxOverlapsNearest3D'
),
pos_iou_thr
=
0.55
,
neg_iou_thr
=
0.4
,
min_pos_iou
=
0.4
,
ignore_iof_thr
=-
1
),
dict
(
# pedestrian
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'BboxOverlapsNearest3D'
),
pos_iou_thr
=
0.5
,
neg_iou_thr
=
0.3
,
min_pos_iou
=
0.3
,
ignore_iof_thr
=-
1
),
dict
(
# cyclist
type
=
'Max3DIoUAssigner'
,
iou_calculator
=
dict
(
type
=
'BboxOverlapsNearest3D'
),
pos_iou_thr
=
0.5
,
neg_iou_thr
=
0.3
,
min_pos_iou
=
0.3
,
ignore_iof_thr
=-
1
),
],
allowed_border
=
0
,
code_weight
=
[
1.0
,
1.0
,
1.0
,
1.0
,
1.0
,
1.0
,
1.0
],
pos_weight
=-
1
,
debug
=
False
)),
test_cfg
=
dict
(
pts
=
dict
(
use_rotate_nms
=
True
,
nms_across_levels
=
False
,
nms_pre
=
4096
,
nms_thr
=
0.25
,
score_thr
=
0.1
,
min_bbox_size
=
0
,
max_num
=
500
)))
mmde/configs/_base_/models/smoke.py
0 → 100644
View file @
eb1107e4
# model settings
model
=
dict
(
type
=
'SMOKEMono3D'
,
data_preprocessor
=
dict
(
type
=
'Det3DDataPreprocessor'
,
mean
=
[
123.675
,
116.28
,
103.53
],
std
=
[
58.395
,
57.12
,
57.375
],
bgr_to_rgb
=
True
,
pad_size_divisor
=
32
),
backbone
=
dict
(
type
=
'DLANet'
,
depth
=
34
,
in_channels
=
3
,
norm_cfg
=
dict
(
type
=
'GN'
,
num_groups
=
32
),
init_cfg
=
dict
(
type
=
'Pretrained'
,
checkpoint
=
'http://dl.yf.io/dla/models/imagenet/dla34-ba72cf86.pth'
)),
neck
=
dict
(
type
=
'DLANeck'
,
in_channels
=
[
16
,
32
,
64
,
128
,
256
,
512
],
start_level
=
2
,
end_level
=
5
,
norm_cfg
=
dict
(
type
=
'GN'
,
num_groups
=
32
)),
bbox_head
=
dict
(
type
=
'SMOKEMono3DHead'
,
num_classes
=
3
,
in_channels
=
64
,
dim_channel
=
[
3
,
4
,
5
],
ori_channel
=
[
6
,
7
],
stacked_convs
=
0
,
feat_channels
=
64
,
use_direction_classifier
=
False
,
diff_rad_by_sin
=
False
,
pred_attrs
=
False
,
pred_velo
=
False
,
dir_offset
=
0
,
strides
=
None
,
group_reg_dims
=
(
8
,
),
cls_branch
=
(
256
,
),
reg_branch
=
((
256
,
),
),
num_attrs
=
0
,
bbox_code_size
=
7
,
dir_branch
=
(),
attr_branch
=
(),
bbox_coder
=
dict
(
type
=
'SMOKECoder'
,
base_depth
=
(
28.01
,
16.32
),
base_dims
=
((
0.88
,
1.73
,
0.67
),
(
1.78
,
1.70
,
0.58
),
(
3.88
,
1.63
,
1.53
)),
code_size
=
7
),
loss_cls
=
dict
(
type
=
'mmdet.GaussianFocalLoss'
,
loss_weight
=
1.0
),
loss_bbox
=
dict
(
type
=
'mmdet.L1Loss'
,
reduction
=
'sum'
,
loss_weight
=
1
/
300
),
loss_dir
=
dict
(
type
=
'mmdet.CrossEntropyLoss'
,
use_sigmoid
=
False
,
loss_weight
=
1.0
),
loss_attr
=
None
,
conv_bias
=
True
,
dcn_on_last_conv
=
False
),
train_cfg
=
None
,
test_cfg
=
dict
(
topK
=
100
,
local_maximum_kernel
=
3
,
max_per_img
=
100
))
mmde/configs/_base_/models/spvcnn.py
0 → 100644
View file @
eb1107e4
model
=
dict
(
type
=
'MinkUNet'
,
data_preprocessor
=
dict
(
type
=
'Det3DDataPreprocessor'
,
voxel
=
True
,
voxel_type
=
'minkunet'
,
batch_first
=
False
,
max_voxels
=
80000
,
voxel_layer
=
dict
(
max_num_points
=-
1
,
point_cloud_range
=
[
-
100
,
-
100
,
-
20
,
100
,
100
,
20
],
voxel_size
=
[
0.05
,
0.05
,
0.05
],
max_voxels
=
(
-
1
,
-
1
))),
backbone
=
dict
(
type
=
'SPVCNNBackbone'
,
in_channels
=
4
,
num_stages
=
4
,
base_channels
=
32
,
encoder_channels
=
[
32
,
64
,
128
,
256
],
encoder_blocks
=
[
2
,
2
,
2
,
2
],
decoder_channels
=
[
256
,
128
,
96
,
96
],
decoder_blocks
=
[
2
,
2
,
2
,
2
],
block_type
=
'basic'
,
sparseconv_backend
=
'torchsparse'
,
drop_ratio
=
0.3
),
decode_head
=
dict
(
type
=
'MinkUNetHead'
,
channels
=
96
,
num_classes
=
19
,
dropout_ratio
=
0
,
loss_decode
=
dict
(
type
=
'mmdet.CrossEntropyLoss'
,
avg_non_ignore
=
True
),
ignore_index
=
19
),
train_cfg
=
dict
(),
test_cfg
=
dict
())
Prev
1
2
3
4
5
6
7
8
9
…
29
Next
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