-
Notifications
You must be signed in to change notification settings - Fork 104
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: cannot convert float NaN to integer #80
Comments
Hi @ncusspm25, will have a look at the point cloud later. Until then could you please check if you can open it with the Open3D viewer? Also could you provide me the following infos:
Best, Christoph |
Hi @ch-sa , thank for your reply. I can open my pcd file with the Open3D viewer
absl-py 1.0.0
Sincerely, |
Hello @ncusspm25, I just noticed that you only provided a screenshot of the point cloud. Could you upload the Your setup looks fine, maybe you could update Open3D. You could try opening the point cloud without colorizing it by setting I can probably give more specific feedback if you provide the point cloud. Best, Christoph |
Hi @ch-sa I upload my pcd file on Google Drive. I follow your advice to change the config.ini and it works. Thanks a million! I want to use these pcd to build 2D-lidar object detection system. Before that I want to build my own dataset like KITTI dataset. Sincerely, Yuan |
Hi @ncusspm25, thanks a lot for providing the point cloud. I could replicate the behavior. It is closely related to issue: #68. There is a bug when using Open3D to load a This leads to point coordinates being rounded, which in your case led to all points having the same z-value of 0.
Unfortunately it does not seem that this issue is addressed upstream (i.e. in Open3D). You could comment in the linked issue that it also affects you, if you would like to. One workaround is to convert your point clouds into a different format ( As this seems to affect quite a lot of people I might have to replace Open3D with a different loader in future ... Hope this helps, Christoph EDIT You can convert with the following # Convert all *.pcd to *.ply
import os
import open3d as o3d
pcd_folder = "nan-pcd"
for pcd_name in os.listdir(pcd_folder):
o3d.io.write_point_cloud(f"{pcd_name[:-4]}.ply", o3d.io.read_point_cloud(f"{pcd_folder}/{pcd_name}")) |
Hi,
I am a college student studying point cloud. I want to label my own point cloud data.
But I encounter problems when loading the file. Attached is my file and the error message.
I also refer to your solution from other's same problem but it's not work.
https://github.com/ch-sa/labelCloud/tree/ch-sa/nan-pcd
Hope you can give me advice. Thank you very much!
Sincerely,
Yuan
The text was updated successfully, but these errors were encountered: