CenterPoint icon indicating copy to clipboard operation
CenterPoint copied to clipboard

Double flip

Open konyul opened this issue 2 years ago • 5 comments

Do we have to train model with double flip to enhance mAP? Because when I test model with and without doble flip, model with doble flip get worse mAP.

konyul avatar Aug 03 '22 06:08 konyul

And also in config, there is double_flip args in train_pipeline.

konyul avatar Aug 03 '22 06:08 konyul

Could you send a link to the config you talk about? You don't need to do double flip during training. It is only for test time aug

tianweiy avatar Aug 03 '22 07:08 tianweiy

in nusc_centerpoint_voxelnet_0075voxel_dcn_flip.py, there is DOUBLE_FLIP = True and this DOUBLE_FLIP args goes to voxel_generator which is in train_pipeline.

voxel_generator = dict( range=[-54, -54, -5.0, 54, 54, 3.0], voxel_size=[0.075, 0.075, 0.2], max_points_in_voxel=10, max_voxel_num=[120000, 160000], double_flip=DOUBLE_FLIP )

train_pipeline = [ dict(type="LoadPointCloudFromFile", dataset=dataset_type), dict(type="LoadPointCloudAnnotations", with_bbox=True), dict(type="Preprocess", cfg=train_preprocessor), dict(type="Voxelization", cfg=voxel_generator), dict(type="AssignLabel", cfg=train_cfg["assigner"]), dict(type="Reformat"), # dict(type='PointCloudCollect', keys=['points', 'voxels', 'annotations', 'calib']), ]

konyul avatar Aug 03 '22 07:08 konyul

flip config is only used for testing. you can use nusc_centerpoint_voxelnet_0075voxel_dcn.py for training.

tianweiy avatar Aug 08 '22 15:08 tianweiy

the double flip modifies the data arguments so training using this flip config may have some undesired behavior

tianweiy avatar Aug 08 '22 15:08 tianweiy