Skip to content

Commit

Permalink
Fixed bug in Nuscenes dataset and Update configs
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshi3 committed May 9, 2023
1 parent 1d2c3f6 commit 7cc9e07
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pcdet/datasets/nuscenes/nuscenes_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def create_nuscenes_info(version, data_path, save_path, max_sweeps=10, with_cam=

train_nusc_infos, val_nusc_infos = nuscenes_utils.fill_trainval_infos(
data_path=data_path, nusc=nusc, train_scenes=train_scenes, val_scenes=val_scenes,
test='test' in version, max_sweeps=max_sweeps
test='test' in version, max_sweeps=max_sweeps, with_cam=with_cam
)

if version == 'v1.0-test':
Expand Down
11 changes: 6 additions & 5 deletions tools/cfgs/nuscenes_models/cbgs_bevfusion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ DATA_CONFIG:

- NAME: imgaug
ROT_LIM: [-5.4, 5.4]
RAND_FLIP: true
RAND_FLIP: True

DATA_PROCESSOR:
- NAME: mask_points_and_boxes_outside_range
Expand Down Expand Up @@ -85,7 +85,8 @@ MODEL:
CONVERT_WEIGHTS: True
INIT_CFG:
type: Pretrained
checkpoint: swint-nuimages-pretrained.pth
# checkpoint: swint-nuimages-pretrained.pth
checkpoint: /slurm_data/shichen/package/tomopc_cu111/OpenPCDet/tmp/pretrained/swint-nuimages-pretrained.pth

NECK:
NAME: GeneralizedLSSFPN
Expand All @@ -108,7 +109,7 @@ MODEL:
DOWNSAMPLE: 2

FUSER:
NAME: 'ConvFuser'
NAME: ConvFuser
IN_CHANNEL: 336
OUT_CHANNEL: 256

Expand All @@ -119,7 +120,7 @@ MODEL:
NUM_FILTERS: [128, 256]
UPSAMPLE_STRIDES: [1, 2]
NUM_UPSAMPLE_FILTERS: [256, 256]
USE_CONV_FOR_NO_STRIDE: true
USE_CONV_FOR_NO_STRIDE: True


DENSE_HEAD:
Expand Down Expand Up @@ -167,7 +168,7 @@ MODEL:
'code_weights': [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.2, 0.2]
}
LOSS_CLS:
use_sigmoid: true
use_sigmoid: True
gamma: 2.0
alpha: 0.25

Expand Down
2 changes: 1 addition & 1 deletion tools/cfgs/nuscenes_models/cbgs_transfusion_lidar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ MODEL:
'code_weights': [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.2, 0.2]
}
LOSS_CLS:
use_sigmoid: true
use_sigmoid: True
gamma: 2.0
alpha: 0.25

Expand Down

0 comments on commit 7cc9e07

Please sign in to comment.