(self, data, name, ind=None)
| 60 | o3d.io.write_point_cloud(out_path, pcd) |
| 61 | |
| 62 | def log_numpy_data(self, data, name, ind=None): |
| 63 | if isinstance(data, torch.Tensor): |
| 64 | data = data.detach().cpu().numpy() |
| 65 | if ind is not None: |
| 66 | np.save(osp.join(self.misc_dir, "{}-{:05d}.npy".format(name, ind)), data) |
| 67 | else: |
| 68 | np.save(osp.join(self.misc_dir, f"{name}.npy"), data) |
| 69 | |
| 70 | def log_debug_data(self, data, idx): |
| 71 | with open(os.path.join(self.misc_dir, f"scene_data_{idx}.pkl"), 'wb') as f: |