RWL 29417d1f9b NaN (divide by zero) fix for issue #561 and #790 (#891)
Summary:
https://github.com/facebookresearch/pytorch3d/issues/561
https://github.com/facebookresearch/pytorch3d/issues/790
Divide by zero fix (NaN fix).  When perspective_correct=True, BarycentricPerspectiveCorrectionForward and BarycentricPerspectiveCorrectionBackward in ../csrc/utils/geometry_utils.cuh are called.  The denominator (denom) values should not be allowed to go to zero. I'm able to resolve this issue locally with this PR and submit it for the team's review.

Pull Request resolved: https://github.com/facebookresearch/pytorch3d/pull/891

Reviewed By: patricklabatut

Differential Revision: D31829695

Pulled By: bottler

fbshipit-source-id: a3517b8362f6e60d48c35731258d8ce261b1d912
2021-10-22 04:52:06 -07:00
..
2021-08-12 14:06:32 -07:00
2021-09-22 15:54:59 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-10-18 03:38:11 -07:00
2021-08-12 14:06:32 -07:00
2021-09-15 13:49:22 -07:00
2021-10-18 03:38:11 -07:00
2021-10-19 16:08:39 -07:00
2021-09-22 15:54:59 -07:00
2021-10-01 11:58:24 -07:00