ShichenLiu / SoftRas

Project page of paper "Soft Rasterizer: A Differentiable Renderer for Image-based 3D Reasoning"
MIT License
1.24k stars 156 forks source link

Renderer parameters for color reconstruction #10

Closed sunshineatnoon closed 5 years ago

sunshineatnoon commented 5 years ago

Hi, Thanks for open-sourcing this awesome project. For the image reconstruction part, may I ask what parameters you use in the renderer? (gamma_val, aggr_func_rgb etc.). Also, would you please shed some light on why we need to aggregate all faces when computing color? Cause it seems only the face with the smallest z matters to color.

ShichenLiu commented 5 years ago

Hi,

I just uploaded shape recon code. Please check in the code! When compute gradient from color to texture, I would agree that only the front triangle matters. However, when computing gradient to vertices, the color from other triangles also matters so that the vertices would know where they should "move" to match the ground truth images.

sunshineatnoon commented 5 years ago

Thanks!

tejank10 commented 4 years ago

Hi @sunshineatnoon, were you able to reproduce the color reconstruction experiment?