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

fusion.sh #5

Closed
Liyuanzhen1992 opened this issue May 31, 2020 · 1 comment
Closed

fusion.sh #5

Liyuanzhen1992 opened this issue May 31, 2020 · 1 comment

Comments

@Liyuanzhen1992
Copy link

Liyuanzhen1992 commented May 31, 2020

when I run fusion.sh, have a bug:
data = np.fromstring(data_string, data_type)
ValueError: string size must be a multiple of element size

your code is"

scale = float((file.readline()).decode('UTF-8').rstrip())
if scale < 0: # little-endian
data_type = '<f'
else:
data_type = '>f' # big-endian
data_string = file.read()
#data = np.fromstring(data_string)
data = np.fromstring(data_string, "data_type")

@JiayuYANG
Copy link
Owner

Hi @Liyuanzhen1992 ,

That part of code is for reading the .pfm file, which contains a depth map or a probability map.
I think it is something related to your input. Is your .pfm file generated correctly?

Cheers,
Jiayu

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

2 participants