PRBonn / make_it_dense

Make it Dense: Self-Supervised Geometric Scan Completion of Sparse 3D LiDAR Scans in Large Outdoor Environments
https://www.ipb.uni-bonn.de/wp-content/papercite-data/pdf/vizzo2022ral-iros.pdf
132 stars 11 forks source link

Converting PosixPath to str before reading the point cloud #8

Closed vnmsklnk closed 1 year ago

vnmsklnk commented 1 year ago

In the current implementation, I get an error if the file extension is not .bin:

TypeError: read_point_cloud(): incompatible function arguments. The following argument types are supported:
    1. (filename: str, format: str = 'auto', remove_nan_points: bool = False, remove_infinite_points: bool = False, print_progress: bool = False) -> open3d.cpu.pybind.geometry.PointCloud

Invoked with: PosixPath('/workspace/dataset/pc_uv_labelled_01.xyz')

This PR fixes the problem by converting PosixPath to string.

nachovizzo commented 1 year ago

Thanks!