Skip to content

Commit

Permalink
[docs] Small autodiff-related improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinND committed Mar 3, 2020
1 parent dbcecba commit 6c046be
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/examples/10_inverse_rendering/forward_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@

# .. write them to a PNG file
crop_size = scene.sensors()[0].film().crop_size()
write_bitmap('out.png', image_grad, crop_size)
fname = 'out.png'
write_bitmap(fname, image_grad, crop_size)
print('Wrote forward differentiation image to: {}'.format(fname))
9 changes: 8 additions & 1 deletion docs/src/getting_started/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ Frequently asked questions
compatible with the video driver (the two must satisfy version requirements
that are detailed on the OptiX website)

- Differentiable rendering fails with an error message similar to ":monosp:`RuntimeError:
cuda_malloc(): out of memory!`".

The rendering or autodiff graph exhausted your GPU's memory. Try reducing the sample count
and / or resolution. If high sample count renders are necessary, it is possible to split computation
in several low sample count passes and average together the gradients.

- Citing Mitsuba 2 in scientific literature.

Please use the following BibTeX entry to cite Mitsuba 2 in research articles,
Expand All @@ -45,7 +52,7 @@ Frequently asked questions
doi = {10.1145/3355089.3356498}
}
Here is a plain-text version of the above:
Here is a plain-text version of the above:

Merlin Nimier-David, Delio Vicini, Tizian Zeltner, and Wenzel Jakob.
2019. Mitsuba 2: A Retargetable Forward and Inverse Renderer. In
Expand Down
3 changes: 2 additions & 1 deletion docs/src/inverse_rendering/diff_render.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ well-known Cornell Box scene that can be downloaded `here
Please make the following three changes to the ``cbox.xml`` file:

1. ``ldsampler`` must be replaced by ``independent`` (``ldsampler`` has not yet
been ported to Mitsuba 2)
been ported to Mitsuba 2). Note that the sample count specified here will be overriden
in the optimization script below.

2. The integrator at the top should be defined as follows:

Expand Down

0 comments on commit 6c046be

Please sign in to comment.