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.34k stars 180 forks source link

Error occurred #131

Open ForrestPi opened 9 months ago

ForrestPi commented 9 months ago

sugar_model.py", line 493, in texture_features return self.sh_coordinates[self.point_idx_per_pixel] IndexError: tensors used as indices must be long, byte or bool tensors

shijunpu163 commented 8 months ago

the same problem, changed the code: self.sh_coordinates[self.point_idx_per_pixel]
to self.sh_coordinates[self.point_idx_per_pixel.long()]