Differentiable rendering has received increasing interest for image-based inverse problems. It can benefit traditional optimization-based solutions to inverse problems, but also allows for self-supervision of learning-based approaches for which training data with ground truth annotation is hard to obtain. However, existing differentiable renderers either do not model visibility of the light sources from the different points in the scene, responsible for shadows in the images, or are too slow for being used to train deep architectures over thousands of iterations. To this end, we propose an accurate yet efficient approach for differentiable visibility and soft shadow computation. Our approach is based on the spherical harmonics approximations of the scene illumination and visibility, where the occluding surface is approximated with spheres. This allows for a significantly more efficient shadow computation compared to methods based on ray tracing. As our formulation is differentiable, it can be used to solve inverse problems such as texture, illumination, rigid pose, and geometric deformation recovery from images using analysis-by-synthesis optimization.
翻译:可区别的图像已经越来越引起人们对基于图像的反问题的兴趣。 它可以有利于传统的基于优化的反问题解决方案,但也允许对基于学习的方法进行自我监督,而很难获得关于地面真相说明的培训数据。 但是,现有的可区别的转化器要么没有模拟现场不同点的光源的可见度,对图像的阴影负责,要么过于缓慢,无法用于对数千次迭代进行深层结构培训。 为此,我们建议了一种精确而有效的方法,用于不同的可见度和软影子计算。 我们的方法是以现场照明和可见度的球形相近性为基础,其表面与球体相近。这样可以大大提高阴影计算效率,而不是以光追踪为基础的方法。由于我们的配方方法不同,因此可以用来用分析合成的优化来解决图象的反向问题,如纹理、光化、刻板面和几何分解。