More renderer parameter descriptions

Summary:
Copy some descriptions of renderer parameters to more places so they are easier to find.

Also a couple of small corrections, and make RasterizationSettings a dataclass.

Reviewed By: nikhilaravi, patricklabatut

Differential Revision: D30899822

fbshipit-source-id: 805cf366acb7d51cb308fa574deff0657c199673
This commit is contained in:
Jeremy Reizenstein
2021-09-24 09:58:10 -07:00
committed by Facebook GitHub Bot
parent 860b742a02
commit 9a737da83c
6 changed files with 114 additions and 68 deletions

View File

@@ -5,10 +5,11 @@
# LICENSE file in the root directory of this source tree.
import math
from typing import Tuple, Union
from typing import Tuple
import torch
DEFAULT_ACOS_BOUND = 1.0 - 1e-4
@@ -27,9 +28,11 @@ def acos_linear_extrapolation(
if lower_bound <= x <= upper_bound:
acos_linear_extrapolation(x) = acos(x)
elif x <= lower_bound: # 1st order Taylor approximation
acos_linear_extrapolation(x) = acos(lower_bound) + dacos/dx(lower_bound) * (x - lower_bound)
acos_linear_extrapolation(x)
= acos(lower_bound) + dacos/dx(lower_bound) * (x - lower_bound)
else: # x >= upper_bound
acos_linear_extrapolation(x) = acos(upper_bound) + dacos/dx(upper_bound) * (x - upper_bound)
acos_linear_extrapolation(x)
= acos(upper_bound) + dacos/dx(upper_bound) * (x - upper_bound)
```
Args: