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

AttributeError: module 'pptk' has no attribute 'set' #64

Open
Petros626 opened this issue Oct 15, 2024 · 0 comments
Open

AttributeError: module 'pptk' has no attribute 'set' #64

Petros626 opened this issue Oct 15, 2024 · 0 comments

Comments

@Petros626
Copy link

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

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

1 participant