LLFF icon indicating copy to clipboard operation
LLFF copied to clipboard

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

Open fanzz1208 opened this issue 2 years ago • 2 comments

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???

fanzz1208 avatar Nov 14 '23 03:11 fanzz1208

Have you solved this problem?

Zhaoyibinn avatar Dec 01 '24 13:12 Zhaoyibinn

I got the same error, have you figured that out?

ehatami65 avatar Mar 17 '25 17:03 ehatami65