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

Doesn't work in colab #5

Open
fader111 opened this issue Sep 7, 2021 · 0 comments
Open

Doesn't work in colab #5

fader111 opened this issue Sep 7, 2021 · 0 comments

Comments

@fader111
Copy link

fader111 commented Sep 7, 2021

  4 # Sphere mesh in pytorch3d

----> 5 sphere_mesh = ico_sphere(4, device)
6
7 verts_rgb = torch.ones_like(sphere_mesh.verts_list()[0])[None]

6 frames
/usr/local/lib/python3.7/dist-packages/pytorch3d/ops/subdivide_meshes.py in subdivide_heterogenerous(self, meshes, feats)
290 # Add one new vertex at the midpoint of each edge by taking the average
291 # of the verts that form each edge.
--> 292 new_verts = verts[edges].mean(dim=1)
293 new_verts = torch.cat([verts, new_verts], dim=0)
294

IndexError: tensors used as indices must be long, byte or bool tensors

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

1 participant