Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError...Encountered a CUDA error... #70

Open
danzelus opened this issue Oct 24, 2023 · 4 comments
Open

RuntimeError...Encountered a CUDA error... #70

danzelus opened this issue Oct 24, 2023 · 4 comments

Comments

@danzelus
Copy link

win 11, 4090

C:\NextFace\landmarksfan.py:35: UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor. (Triggered internally at C:\cb\pytorch_1000000000000\work\torch\csrc\utils\tensor_new.cpp:233.)
  return torch.tensor(landmarks, device = self.device)
init camera pose...
1/3 => Optimizing head pose and expressions using landmarks...
100%|█████████████████████████████████████████████████████████████████████████████| 2000/2000 [00:04<00:00, 401.81it/s]
2/3 => Optimizing shape, statistical albedos, expression, head pose and scene light...
  0%|                                                                                          | 0/401 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "optimizer.py", line 495, in <module>
    doStep3= doStep3)
  File "optimizer.py", line 438, in run
    self.runStep2()
  File "optimizer.py", line 244, in runStep2
    images = self.pipeline.render(cameraVerts, diffuseTextures, specularTextures)
  File "C:\NextFace\pipeline.py", line 139, in render
    images = self.renderer.render(scenes)
  File "C:\NextFace\renderer.py", line 155, in render
    device = self.device)
  File "C:\NextFace\renderer.py", line 62, in renderPathTracing
    device=device)
  File "C:\NextFace\renderer.py", line 41, in rayTrace
    imgs.append(pyredner.RenderFunction.apply(se, *scene_args))
  File "C:\Users\user\anaconda3\envs\facenext\lib\site-packages\pyredner\render_pytorch.py", line 659, in forward
    args_ctx = RenderFunction.unpack_args(seed, args)
  File "C:\Users\user\anaconda3\envs\facenext\lib\site-packages\pyredner\render_pytorch.py", line 617, in unpack_args
    use_secondary_edge_sampling)
RuntimeError: Function "_rtpModelUpdate" caught exception: Encountered a CUDA error: radix_sort_temp_size -> cub::DeviceRadixSort::SortPairs returned (8): invalid device function
@MehmetOKUYAR
Copy link

ı have same problem

@Daves-ding
Copy link

same

@LitCaesala
Copy link

LitCaesala commented Jun 20, 2024

same, also win11, 4090

@wangalong-ahpu
Copy link

same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants