Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yuedajiong opened this issue Dec 20, 2023 · 1 comment
Open

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

yuedajiong opened this issue Dec 20, 2023 · 1 comment

Comments

@yuedajiong
Copy link

yuedajiong commented Dec 20, 2023

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
Copy link

should be merged to the code base.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants