uci-rendering / psdr-cuda

Path-space differentiable renderer
BSD 3-Clause "New" or "Revised" License
155 stars 11 forks source link

noise in rendered image when optimization #18

Closed l1346792580123 closed 2 years ago

l1346792580123 commented 2 years ago

When I optimize the BSDF and the environment map, there are noises in the rendered image. The noises are similar to this direct_orig_0.

How can I avoid these noises and get clear image? I use the direct integrator with 1 bsdf sample. And the spp is 8, texture resolution is 1024 and the rendered image resolution is 512.

andyyankai commented 2 years ago

When spp is low (like 8spp), the rendered image definitly will have variance... If you are limited by the gpu memory, you can decrease the image resolution and increase the spp. In addition, I suggest you enable MIS by setting bsdf sampling to 1 and emitter sampling to 1. Also for the forward pass, you can also use loop to average mutiple noisy image to generate a clean image. For the backward pass, you can accumulate mutiple gradient value to get a better gradient estimation.

l1346792580123 commented 2 years ago

Thanks for your advice. I will try as you suggested.