pytorch3d
pytorch3d copied to clipboard
RuntimeError: CUDA error: an illegal memory access was encountered
I am using Google Colab with the following package versions: pytorch3d 0.6.2 torch 1.11.0+cu113 Python 3.7.13
It occurs to me that I have recently getting CUDA errors that I could not understand. After analyzing it, I came to the conclusion that it's triggered by the pytorch3d.ops.sample_farthest_points(), and actually only whenever I use a batch_size of 2. Besides using a batch_size higher than 2, how can I prevent this error from happening or is it trivial to always use higher batch_sizes than 2?
I really appreciate any help you can provide.
RuntimeError Traceback (most recent call last)
3 frames
/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py in _call_impl(self, *input, **kwargs) 1108 if not (self._backward_hooks or self._forward_hooks or self._forward_pre_hooks or _global_backward_hooks 1109 or _global_forward_hooks or _global_forward_pre_hooks): -> 1110 return forward_call(*input, **kwargs) 1111 # Do not call functions when jit is used 1112 full_backward_hooks, non_full_backward_hooks = [], []
/usr/local/lib/python3.7/dist-packages/pytorch3d/ops/sample_farthest_points.py in sample_farthest_points(points, lengths, K, random_start_point)
86 with torch.no_grad():
87 # pyre-fixme[16]: pytorch3d_._C
has no attribute sample_farthest_points
.
---> 88 idx = _C.sample_farthest_points(points, lengths, K, start_idxs)
89 sampled_points = masked_gather(points, idx)
90
RuntimeError: CUDA error: an illegal memory access was encountered
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
I don't think I can replicate this. Can you? What is the shape and dtype of E1
? What is len_out
?