daniilidis-group / neural_renderer

A PyTorch port of the Neural 3D Mesh Renderer
Other
1.13k stars 252 forks source link

Rendered Meshes with Large Faces are Blurry. #32

Closed Ailuridae closed 5 years ago

Ailuridae commented 5 years ago

The original paper states:

We use Figure 2 (b) for the forward pass because if we use Figure 2 (d), the color of a face leaks outside of the face. Therefore, our rasterizer produces the same images as the standard rasterizer, but it has non-zero gradients.

This is not correct, as meshes with large faces and detailed textures will result in a blurry images. The problem, which was already described in #6, could probably be solved by rewriting the current texture sampling method. What's the reason behind the current implementation?

nkolot commented 5 years ago

This repo contains a PyTorch reimplementation of the original repo. It should be more appropriate to ask this question in the original repo. I understand what you are saying, and feel free to implement a different sampling method and submit a PR if you want.