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 -1 is out of bounds for axis 0 with size 0 #83

Open
fanzz1208 opened this issue Nov 14, 2023 · 0 comments
Open

IndexError: index -1 is out of bounds for axis 0 with size 0 #83

fanzz1208 opened this issue Nov 14, 2023 · 0 comments

Comments

@fanzz1208
Copy link

Points (1, 3) Visibility (1, 19)
Depth stats 199.47634294350073 205.96847091521676 202.9606774417559
Traceback (most recent call last):
File "imgs2poses.py", line 19, in
gen_poses(args.scenedir, args.match_type)
File "/workspace/LLFF/llff/poses/pose_utils.py", line 281, in gen_poses
save_poses(basedir, poses, pts3d, perm)
File "/workspace/LLFF/llff/poses/pose_utils.py", line 87, in save_poses
close_depth, inf_depth = np.percentile(zs, .1), np.percentile(zs, 99.9)
File "<array_function internals>", line 6, in percentile
File "/opt/conda/lib/python3.7/site-packages/numpy/lib/function_base.py", line 3868, in percentile
a, q, axis, out, overwrite_input, interpolation, keepdims)
File "/opt/conda/lib/python3.7/site-packages/numpy/lib/function_base.py", line 3988, in _quantile_unchecked
interpolation=interpolation)
File "/opt/conda/lib/python3.7/site-packages/numpy/lib/function_base.py", line 3564, in _ureduce
r = func(a, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/numpy/lib/function_base.py", line 4098, in _quantile_ureduce_func
n = np.isnan(ap[-1])
IndexError: index -1 is out of bounds for axis 0 with size 0

How to solve it???

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