Anttwo / SuGaR

[CVPR 2024] Official PyTorch implementation of SuGaR: Surface-Aligned Gaussian Splatting for Efficient 3D Mesh Reconstruction and High-Quality Mesh Rendering
https://anttwo.github.io/sugar/
Other
2.36k stars 182 forks source link

A little bug fixed: tensor as index should be long #33

Open yuedajiong opened 11 months ago

yuedajiong commented 11 months ago

point_idx_per_pixel = torch.zeros(texture_size, texture_size, device=rc.device).int() --> point_idx_per_pixel = torch.zeros(texture_size, texture_size, device=rc.device).long()

torch.tensor(np.array(surface_mesh_to_bind.triangles)).to(nerfmodel.device), --> torch.tensor(np.array(surface_mesh_to_bind.triangles), dtype=torch.long).to(nerfmodel.device),

huangxu-data commented 11 months ago

should be merged to the code base.