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

Problem converting tiff files #16

Closed
OliviaNocentini opened this issue Jul 22, 2019 · 2 comments
Closed

Problem converting tiff files #16

OliviaNocentini opened this issue Jul 22, 2019 · 2 comments

Comments

@OliviaNocentini
Copy link

Hi,
First thanks for the code of the GGCNN.
I was trying to convert the dataset to achieve depth images. The problem is that when I run the command:
python -m utils.dataset_processing.generate_cornell_depth
changing the path to my own dataset path, I get no error in the conversion, but then the d.tiff files are empty.
Could you please help me solving this problem? Thank you

@dougsm
Copy link
Owner

dougsm commented Jul 22, 2019

Hi Olivia,

Just to check, try running the below script with one of the images. If I open the .tiff files in ubuntu, they look empty, but in reality the data is there. I think maybe it doesn't understand what to do with the floating point format.

Let me know if this doesn't work.

import matplotlib.pyplot as plt
import imageio

i = imageio.imread('pcd0100d.tiff')
plt.imshow(i)
plt.show()

Left is how it looks in the ubuntu image viewer, right is the plot from the above script.

image

@OliviaNocentini
Copy link
Author

Hi, thank you for answering so quickly!it works, so maybe, as you said, there was a problem with the floating point format.

@dougsm dougsm closed this as completed Jul 23, 2019
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