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

photometric_confidence & IndexError: min(): Expected reduction dim 0 to have non-zero size. #104

Open
iszhihao opened this issue May 16, 2024 · 0 comments

Comments

@iszhihao
Copy link

Hello, I use other pre-trained MVSNet models to generate depth maps and confidence values. However, the confidence values generated on the NerfSynth and TankandTemple datasets are all the same, as shown below.
photometric_confidence
tensor([[[0.1250, 0.1250, 0.1250, ..., 0.1250, 0.1250, 0.1250],
[0.1250, 0.1250, 0.1250, ..., 0.1250, 0.1250, 0.1250],
[0.1250, 0.1250, 0.1250, ..., 0.1250, 0.1250, 0.1250],
...,
Do you know how to resolve this issue? Here is the error message I received:
xyz_world_all torch.Size([0, 3]) torch.Size([0, 1]) torch.Size([0])
%%%%%%%%%%%%% getattr(dataset, spacemin, None) None
vishull_mask torch.Size([0])
alpha masking xyz_world_all torch.Size([0, 3]) torch.Size([0, 1])
Traceback (most recent call last):
File "/cluster/hebut/PointNeRF-v5/run/train_ft_nonstop.py", line 1109, in
main()
File "/cluster/hebut/PointNeRF-v5/run/train_ft_nonstop.py", line 653, in main
points_xyz_all, points_embedding_all, points_color_all, points_dir_all, points_conf_all, img_lst, c2ws_lst, w2cs_lst, intrinsics_all, HDWD_lst = gen_points_filter_embeddings(train_dataset, visualizer, opt)
File "/cluster/hebut/PointNeRF-v5/run/train_ft_nonstop.py", line 147, in gen_points_filter_embeddings
xyz_world_all, sparse_grid_idx, sampled_pnt_idx = mvs_utils.construct_vox_points_closest(xyz_world_all.cuda() if len(xyz_world_all) < 99999999 else xyz_world_all[::(len(xyz_world_all)//99999999+1),...].cuda(), opt.vox_res)
File "/cluster/hebut/PointNeRF-v5/run/../models/mvs/mvs_utils.py", line 541, in construct_vox_points_closest
xyz_min, xyz_max = torch.min(xyz, dim=-2)[0], torch.max(xyz, dim=-2)[0]
IndexError: min(): Expected reduction dim 0 to have non-zero size.
end loading

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