Hi,Thanks a lot for the excellent code,But when I run eval_pyramid.sh I set fusion=True and I meet this error.How can I solve this?
eval.py:111: DeprecationWarning: np.bool is a deprecated alias for the builtin bool. To silence this warning, use bool by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.bool_ here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
assert mask.dtype == np.bool
processing ./dtu/scan1, ref-view00, photo/geo/final-mask:0.5489484797297297/0.0005194256756756757/0.00035472972972972974
valid_points 0.00035472972972972974
Traceback (most recent call last):
File "eval.py", line 379, in
filter_depth(scan_folder, out_folder, os.path.join(save_dir, 'mvsnet{:0>3}_l3.ply'.format(scan_id)))
File "eval.py", line 330, in filter_depth
color = ref_img[1:-16:4, 1::4, :][valid_points] # hardcoded for DTU dataset
IndexError: boolean index did not match indexed array along dimension 0; dimension is 296 but corresponding boolean dimension is 592
Hi,Thanks a lot for the excellent code,But when I run eval_pyramid.sh I set fusion=True and I meet this error.How can I solve this?
eval.py:111: DeprecationWarning:
filter_depth(scan_folder, out_folder, os.path.join(save_dir, 'mvsnet{:0>3}_l3.ply'.format(scan_id)))
File "eval.py", line 330, in filter_depth
color = ref_img[1:-16:4, 1::4, :][valid_points] # hardcoded for DTU dataset
IndexError: boolean index did not match indexed array along dimension 0; dimension is 296 but corresponding boolean dimension is 592
np.bool
is a deprecated alias for the builtinbool
. To silence this warning, usebool
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.bool_
here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations assert mask.dtype == np.bool processing ./dtu/scan1, ref-view00, photo/geo/final-mask:0.5489484797297297/0.0005194256756756757/0.00035472972972972974 valid_points 0.00035472972972972974 Traceback (most recent call last): File "eval.py", line 379, in