Open YoushaaMurhij opened 2 years ago
Update: Still getting:
RuntimeError: CUDA error: device-side assert triggered
Here is my modification:
pts = torch.from_numpy(self.points).float().to(self.device)
voxels, coords, num_points = self.voxel_generator(pts)
num_voxels = np.array([voxels.shape[0]], dtype=np.int64)
grid_size = self.voxel_generator.grid_size
coords = np.pad(coords.cpu().numpy(), ((0, 0), (1, 0)), mode="constant", constant_values=0)
voxels = voxels.half()
coords = torch.tensor(coords, dtype=torch.int32, device=self.device)
num_voxels = torch.tensor(num_voxels, dtype=torch.int32, device=self.device)
self.inputs = dict(
voxels=voxels,
num_points=num_points,
num_voxels=num_voxels,
coordinates=coords,
shape=[grid_size],
)
I am trying to use Spconv.V2 during inference. Here's my modification:
But, I got this error:
Could you please tell me how to fix this error? Thanks