Closed ashawkey closed 3 months ago
https://github.com/mit-han-lab/torchsparse/blob/462dea4a701f87a7545afb3616bf2cf53dd404f3/torchsparse/nn/modules/bev.py#L96
It seems some modules still use 3 as the batch index instead of 0 in the latest implementation.
Modify to coords = (coords - self.offset).t()[[0] + self.bev_dims].long()
coords = (coords - self.offset).t()[[0] + self.bev_dims].long()
- GCC: - NVCC: - PyTorch: - PyTorch CUDA: - TorchSparse:
No response
Thank you for reporting this issue. Could you please submit a short pull request for this? Thanks!
Is there an existing issue for this?
Current Behavior
https://github.com/mit-han-lab/torchsparse/blob/462dea4a701f87a7545afb3616bf2cf53dd404f3/torchsparse/nn/modules/bev.py#L96
It seems some modules still use 3 as the batch index instead of 0 in the latest implementation.
Expected Behavior
Modify to
coords = (coords - self.offset).t()[[0] + self.bev_dims].long()
Environment
Anything else?
No response