GAP-LAB-CUHK-SZ / GAP-LAB-CUHK-SZ/Total3DUnderstanding

Bug on index device

Open
#54 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
445
Forks
52
PR merge metrics
No merged PRs in 30d

Description

I got the following error when trying to run the demo code. I didn't change anything. Please help. Thanks!

Traceback (most recent call last):
File "/home/ryanrzzhang/文档/yankesong/Total3DUnderstanding/main.py", line 38, in
demo.run(cfg)
File "/home/ryanrzzhang/文档/yankesong/Total3DUnderstanding/demo.py", line 147, in run
est_data = net(data)
File "/home/ryanrzzhang/anaconda3/envs/Total3DUnderstanding/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/home/ryanrzzhang/文档/yankesong/Total3DUnderstanding/models/total3d/modules/network.py", line 95, in forward
mesh_output, _, _, _, _, out_faces = self.mesh_reconstruction(data['patch'], data['cls_codes'])
File "/home/ryanrzzhang/anaconda3/envs/Total3DUnderstanding/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/home/ryanrzzhang/anaconda3/envs/Total3DUnderstanding/lib/python3.10/site-packages/torch/nn/parallel/data_parallel.py", line 169, in forward
return self.module(*inputs[0], **kwargs[0])
File "/home/ryanrzzhang/anaconda3/envs/Total3DUnderstanding/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/home/ryanrzzhang/文档/yankesong/Total3DUnderstanding/models/total3d/modules/mesh_reconstruction.py", line 209, in forward
current_faces[batch_id][sphere_edge2face[rm_edges].sum(0).type(torch.bool), :] = 1
RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.