Skip to content

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

@fanzz1208

Description

@fanzz1208

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions