muelea/selfcontact

running run_selfcontact_optimization meet error

Closed this issue · 1 comments

qinb commented

Thank you for sharing so excellent research. The error happens when I run run_selfcontact_optimization.py.
At first, My system is ubuntu18.04, cuda11.0, pytorch1.8.1
the detailed error is following:
File "/opt/conda/envs/selfcontact/lib/python3.6/site-packages/selfcontact/utils/mesh.py", line 66, in compute_vertex_normals vertices_faces[:, 0] - vertices_faces[:, 1])) RuntimeError: index_add_cuda_ does not have a deterministic implementation, but you set 'torch.use_deterministic_algorithms(True)'. You can turn off determinism just for this operation if that's acceptable for your application. You can also file an issue at https://github.com/pytorch/pytorch/issues to help us prioritize adding deterministic support for this operation.

I set the command torch.use_deterministic_algorithms(True), but it's useless. Hoping for your answer, thanks! @paulchhuang @ahmedosman

qinb commented

I solved it