Caenorst
Caenorst
Hi @yang-si-hang , thank you for your interest in Kaolin. You are asking to generate an SDF from a point cloud but the function you quoting here is a point...
Hi @River-Zhang can you please provide the inputs that would raise this error?
Hi @lai-pf , to my knowledge there is no source of non-determinism in Kaolin's rendering, you can easily check by doing something like that: ``` input1 = input1.detach().clone() input1.requires_grad() input2...
Hi @lai-pf , you need to add an offset to `mesh_B.faces`: ``` tmp_faces = concat([mesh_A.faces, mesh_B.faces + mesh_A.vertices.shape[0]]) ```
Do you have this gradient difference if you just render a single mesh? (mesh_A?)
Also in mesh_B?
Rasterization should work with non watertigh meshes
So the single mesh_B leads to non-deterministic gradient? Can you share the model?
There is indeed a source of non-determinism, which is probably coming from the `atomicAdd` here: https://github.com/NVIDIAGameWorks/kaolin/blob/master/kaolin/csrc/render/mesh/rasterization_cuda.cu#L391-L398 The differences in values are in the 1e-6 magnitude which should be very negligible,...
You wanna do the same thing [here](https://github.com/NVIDIAGameWorks/kaolin/blob/master/kaolin/csrc/render/mesh/rasterization_cuda.cu#L283) That have resolved most of the non-determinism (for some reason I still have some rare occurences but I can't pin where it is...