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: max(): Expected reduction dim 0 to have non-zero size. #5

Open
yyj2518 opened this issue Aug 26, 2023 · 0 comments
Open

Comments

@yyj2518
Copy link

yyj2518 commented Aug 26, 2023

Really excellent work!

When I run the code, I can not get the reconstruction result . I found a error :

Traceback (most recent call last):
File "main.py", line 337, in
test()
File "main.py", line 270, in test
loss, scalar_outputs, outputs = test_sample(sample, save_scene)
File "/home/sdu/yyj/VisFusion-main/utils.py", line 27, in wrapper
ret = func(*f_args, **f_kwargs)
File "main.py", line 327, in test_sample
outputs, loss_dict = model(sample, save_scene)
File "/home/sdu/anaconda3/envs/neucon/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "/home/sdu/anaconda3/envs/neucon/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py", line 166, in forward
return self.module(*inputs[0], **kwargs[0])
File "/home/sdu/anaconda3/envs/neucon/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "/home/sdu/yyj/VisFusion-main/models/visfusion_net.py", line 89, in forward
outputs=outputs, save_mesh=save_mesh)
File "/home/sdu/anaconda3/envs/neucon/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "/home/sdu/yyj/VisFusion-main/models/global_fusion.py", line 406, in forward
outputs = self.save_mesh(layer, outputs, self.scene_name[layer])
File "/home/sdu/yyj/VisFusion-main/models/global_fusion.py", line 206, in save_mesh
max_c = torch.max(fuse_coords, dim=0)[0][:3]
IndexError: max(): Expected reduction dim 0 to have non-zero size.

Could you help me to solve it.
thx!

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