Open yuedajiong opened 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),
should be merged to the code base.
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),