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

IndexError: index out of range #139

Open
changhui666 opened this issue Mar 18, 2022 · 0 comments
Open

IndexError: index out of range #139

changhui666 opened this issue Mar 18, 2022 · 0 comments

Comments

@changhui666
Copy link

Traceback (most recent call last):
File "train.py", line 30, in
model.optimize_parameters()
File "/home/ch/MeshCNN-master/models/mesh_classifier.py", line 66, in optimize_parameters
out = self.forward()
File "/home/ch/MeshCNN-master/models/mesh_classifier.py", line 57, in forward
out = self.net(self.edge_features, self.mesh)
File "/usr/local/Anaconda3/envs/torch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/usr/local/Anaconda3/envs/torch/lib/python3.6/site-packages/torch/nn/parallel/data_parallel.py", line 166, in forward
return self.module(*inputs[0], **kwargs[0])
File "/usr/local/Anaconda3/envs/torch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home/ch/MeshCNN-master/models/networks.py", line 150, in forward
x = getattr(self, 'pool{}'.format(i))(x, mesh)
File "/home/ch/MeshCNN-master/models/layers/mesh_pool.py", line 21, in call
return self.forward(fe, meshes)
File "/home/ch/MeshCNN-master/models/layers/mesh_pool.py", line 34, in forward
self.__pool_main(mesh_index)
File "/home/ch/MeshCNN-master/models/layers/mesh_pool.py", line 50, in __pool_main
value, edge_id = heappop(queue)
IndexError: index out of range

In our .obj file, the points are 502, the triangle face are 1000, and the edges are 1500. I changed the input_edges to 1500, and an error was reported during training.

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