Skip to content

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

@Petros626

Description

@Petros626

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions