mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2026-07-28 19:46:09 +08:00
more code blocks for readthedocs
Summary: More rst syntax fixes Reviewed By: davidsonic Differential Revision: D40977328 fbshipit-source-id: a3a3accbf2ba7cd9c84a0a82d0265010764a9d61
This commit is contained in:
committed by
Facebook GitHub Bot
parent
94f321fa3d
commit
a2c6af9250
@@ -25,20 +25,20 @@ class EmissionAbsorptionRaymarcher(torch.nn.Module):
|
||||
(i.e. its density -> 1.0).
|
||||
|
||||
EA first utilizes `rays_densities` to compute the absorption function
|
||||
along each ray as follows:
|
||||
```
|
||||
along each ray as follows::
|
||||
|
||||
absorption = cumprod(1 - rays_densities, dim=-1)
|
||||
```
|
||||
|
||||
The value of absorption at position `absorption[..., k]` specifies
|
||||
how much light has reached `k`-th point along a ray since starting
|
||||
its trajectory at `k=0`-th point.
|
||||
|
||||
Each ray is then rendered into a tensor `features` of shape `(..., feature_dim)`
|
||||
by taking a weighed combination of per-ray features `rays_features` as follows:
|
||||
```
|
||||
by taking a weighed combination of per-ray features `rays_features` as follows::
|
||||
|
||||
weights = absorption * rays_densities
|
||||
features = (rays_features * weights).sum(dim=-2)
|
||||
```
|
||||
|
||||
Where `weights` denote a function that has a strong peak around the location
|
||||
of the first surface point that a given ray passes through.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user