Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: too many values to unpack (expected 2) #40

Open
HquGhy opened this issue Oct 17, 2022 · 4 comments
Open

ValueError: too many values to unpack (expected 2) #40

HquGhy opened this issue Oct 17, 2022 · 4 comments

Comments

@HquGhy
Copy link

HquGhy commented Oct 17, 2022

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)

@thebirdgr
Copy link

You might be missing the channel.

@AnasCHARROUD
Copy link

read your depth map with this function

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

@LINFF1023
Copy link

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

@thebirdgr
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants