tsdf-fusion-python icon indicating copy to clipboard operation
tsdf-fusion-python copied to clipboard

ValueError: too many values to unpack (expected 2)

Open HquGhy opened this issue 3 years ago • 4 comments

When I run my own dataset, I have problems that I don't understand。 What should I do?

Initializing voxel volume... Voxel volume size: 62 x 39 x 54 - # points: 130,572 Fusing frame 1/228 Traceback (most recent call last): File "/snap/pycharm-professional/306/plugins/python/helpers/pydev/pydevd.py", line 1496, in _exec pydev_imports.execfile(file, globals, locals) # execute the script File "/snap/pycharm-professional/306/plugins/python/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "/home/wang/tsdf-fusion-python-master/demo.py", line 55, in <module> tsdf_vol.integrate(color_image, depth_im, cam_intr, cam_pose, obs_weight=1.) File "/home/wang/tsdf-fusion-python-master/fusion.py", line 218, in integrate im_h, im_w = depth_im.shape ValueError: too many values to unpack (expected 2)

HquGhy avatar Oct 17 '22 08:10 HquGhy

You might be missing the channel.

thebirdgr avatar Mar 13 '23 09:03 thebirdgr

read your depth map with this function

depth_im = cv2.imread(depth_name, cv2.IMREAD_ANYDEPTH)

AnasCHARROUD avatar May 22 '23 09:05 AnasCHARROUD

Voxel volume size: 2565 x 4061 x 1821 - # points: 18,968,382,765 I used my own dataset, why my numbers are so large. But my dataset is not very big. What is the reason for this

LINFF1023 avatar Jul 25 '23 03:07 LINFF1023

@LINFF1023 it can depend on two things, your voxel size may be large; and your voxelization algorithm, which is our tsd-fusion. Try a different voxel size. For one thing your dataset might small but dense.

thebirdgr avatar Jul 25 '23 07:07 thebirdgr