(
root_path=None
)
| 218 | return pc_np, centroid, scale |
| 219 | |
| 220 | def get_generated_points( |
| 221 | root_path=None |
| 222 | ): |
| 223 | pointss = [] |
| 224 | plys = glob.glob(os.path.join(f"{root_path}/*.ply")) |
| 225 | |
| 226 | progress_bar = tqdm( |
| 227 | range(len(plys)), |
| 228 | dynamic_ncols=True, |
| 229 | ) |
| 230 | |
| 231 | for ply in plys: |
| 232 | |
| 233 | points = common.read_ply(ply) |
| 234 | # points = normalize_point_cloud(points) |
| 235 | pointss.append(points) |
| 236 | progress_bar.update(1) |
| 237 | |
| 238 | print(f"---- Sample : {len(pointss)} ----") |
| 239 | return pointss |
| 240 | |
| 241 | def get_nuScenes_points( |
| 242 | data_root="/ihoment/youjie10/qwt/dataset/nuscenes", |
no test coverage detected