facebookresearch / pytorch3d

PyTorch3D is FAIR's library of reusable components for deep learning with 3D data
https://pytorch3d.org/
Other
8.75k stars 1.31k forks source link

Weights calculating for Alpha Compositing #1579

Closed huohuohuohuohuohuohuohuo closed 11 months ago

huohuohuohuohuohuohuohuo commented 1 year ago

In the pytorch3d.renderer.points.renderer (line 56), the weights are calculated with dists2. However, in the corresponding compositing.py (line 19-22), the notes indicate that the weights are related to z-buf, i,e, the distance between the pixel and points. I dont know if this is inconsistent. Looking forward to your reply.

bottler commented 11 months ago

This is deliberate. See section 3.2 of "SynSin: End-to-end View Synthesis from a Single Image" https://arxiv.org/pdf/1912.08804.pdf . The docstrings have recently been updated to make this clearer.