Commit b26a607c authored by Christian Richardt's avatar Christian Richardt Committed by Facebook GitHub Bot
Browse files

Proofreading and editing pass

Summary: Created from CodeHub with https://fburl.com/edit-in-codehub

Reviewed By: una-dinosauria

Differential Revision: D58369133

fbshipit-source-id: cf6a0e4710be579f60f6d569d23c50183dfd6018
parent 8a3f289b
# DRTK - Differentiable Rendering Toolkit # DRTK Differentiable Rendering Toolkit
This package is a PyTorch library that provides functionality for differentiable rasterization. This package is a PyTorch library that provides functionality for differentiable rasterization.
It consists of five main components It consists of five main components:
* **transform** * **transform**
* **rasterize** * **rasterize**
...@@ -12,17 +12,17 @@ It consists of five main components ...@@ -12,17 +12,17 @@ It consists of five main components
There are also optional components such as **msi** and **mipmap_grid_sampler**. New components may be added in the future. There are also optional components such as **msi** and **mipmap_grid_sampler**. New components may be added in the future.
Typical flow looks like this: A typical flow looks like this:
**transform** -> **rasterize** -> **render** -> **interpolate** -> **CUSTOM SHADING** -> **edge_grad** **transform** **rasterize** **render** **interpolate** **CUSTOM SHADING** **edge_grad**
where: where:
- **transform**: projects the vertex positions from camera space to image space - **transform**: projects the vertex positions from camera space to image space
- **rasterize**: performs rasterization, where pixels in the output image are associated with triangles - **rasterize**: performs rasterization, where pixels in the output image are associated with triangles
- **render**: computes depth and baricentric image - **render**: computes depth and baricentric image
- **interpolate**: interpolates arbitrary vertex attributes - **interpolate**: interpolates arbitrary vertex attributes
- **CUSTOM SHADING**: user implemented shading. - **CUSTOM SHADING**: user implemented shading
- **edge_grad**: special module that computes gradients for the **rasterize** step which is not differentiable on its own. For details please see [**Rasterized Edge Gradients: Handling Discontinuities Differentiably**](https://arxiv.org/abs/2405.02508) - **edge_grad**: special module that computes gradients for the **rasterize** step, which is not differentiable on its own. For details, please see [**Rasterized Edge Gradients: Handling Discontinuities Differentiably**](https://arxiv.org/abs/2405.02508)
## Hello Triangle ## Hello Triangle
The "Hello Triangle" with DRTK would look like this: The "Hello Triangle" with DRTK would look like this:
...@@ -74,14 +74,15 @@ python setup.py build_ext --inplace -j 1 ...@@ -74,14 +74,15 @@ python setup.py build_ext --inplace -j 1
See the [CONTRIBUTING](CONTRIBUTING.md) file for how to help out. See the [CONTRIBUTING](CONTRIBUTING.md) file for how to help out.
## License ## License
DRTK is CC-BY-NC 4.0 licensed, as found in the LICENSE file. DRTK is CC-BY-NC 4.0 licensed, as found in the [LICENSE](LICENSE) file.
## Citation ## Citation
``` ```bibtex
@article{pidhorskyi2024rasterized, @mish{pidhorskyi2024rasterized,
title={Rasterized Edge Gradients: Handling Discontinuities Differentiably}, title = {Rasterized Edge Gradients: Handling Discontinuities Differentiably},
author={Pidhorskyi, Stanislav and Simon, Tomas and Schwartz, Gabriel and Wen, He and Sheikh, Yaser and Saragih, Jason}, author = {Pidhorskyi, Stanislav and Simon, Tomas and Schwartz, Gabriel and Wen, He and Sheikh, Yaser and Saragih, Jason},
journal={arXiv preprint arXiv:2405.02508}, howpublished = {arXiv preprint},
year={2024} year = {2024},
note = {arXiv:2405.02508}
} }
``` ```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment