tsdf-fusion-python
tsdf-fusion-python copied to clipboard
ValueError: too many values to unpack (expected 2)
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)
You might be missing the channel.
read your depth map with this function
depth_im = cv2.imread(depth_name, cv2.IMREAD_ANYDEPTH)
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 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.