Closed zwqnju closed 4 years ago
@zwqnju this is a bug. Besides, here is also incorrect for pointpillar on nuScene. Basically, the timestamp for different sweeps is discarded
@tianweiy Oh, I see. Thanks. I also found another bug:
In the construction method of PillarFeatureNet, voxel_size
and pc_range
both have default values. In the config file like this, the voxel_size
and pc_range
are different with the default values, but the config file do not set them explicitly in model.reader. This also results in the wrong computation of f_center.
you can make a mr.
In https://github.com/poodarchu/Det3D/blob/b4cb6428b807d8cfe2135b535961d710ff9d41c1/det3d/models/readers/pillar_encoder.py#L129 it is to compute the x distance between each point and its corresponding pillar's center. But the current code does not use the point's x value. This line should be modified to:
f_center[:, :, 0] = features[:, :, 0] - (
The computation in y axis has the similar bug, and should be modified too: https://github.com/poodarchu/Det3D/blob/b4cb6428b807d8cfe2135b535961d710ff9d41c1/det3d/models/readers/pillar_encoder.py#L13268 also mentioned this issue.