pptk
pptk copied to clipboard
AttributeError: module 'pptk' has no attribute 'set'
Hey,
I created an conda environment with Python 3.7 and installed pptk, but I still get this error. The viewer opens normally and shows the pointcloud, but I was curious about it.
import numpy as np
import pptk
import os
unchanged_point_cloud = '/home/rlab10/OpenPCDet/data/kitti/unchanged gt_database/000000_Pedestrian_0.bin'
changed_point_cloud = '/home/rlab10/OpenPCDet/data/kitti/custom gt_database/000000_Pedestrian_0.bin'
point_cloud_data = np.fromfile(changed_point_cloud, '<f4') # little-endian float32
point_cloud_data = np.reshape(point_cloud_data, (-1, 4)) # x, y, z, r
pptk.viewer(point_cloud_data[:, :3], debug=True)
pptk.set(point_size=0.01)
Thanks in advance