point-e icon indicating copy to clipboard operation
point-e copied to clipboard

How to export the point cloud?

Open TheSeanLavery opened this issue 2 years ago • 5 comments

I can't find a way of exporting the point cloud.

If someone can explain, I will add the exporting to the notebook.

TheSeanLavery avatar Dec 21 '22 20:12 TheSeanLavery

i have the same question

huanheaha avatar Dec 22 '22 01:12 huanheaha

See my tweet thread @neilsuperduper

nchudleigh avatar Dec 22 '22 01:12 nchudleigh

You have to dump to npz file then load up in point cloud to mesh. From there you can export as plz file and import to blender.

nchudleigh avatar Dec 22 '22 01:12 nchudleigh

So if I understand correctly from his Twitter clutter: import numpy as np pc = sampler.output_to_point_clouds(samples)[0] ## noticed this line is commented in the notebook np.savez_compressed('{whatever}.npz', coords=pc.coords, **pc.channels)

Natotela avatar Dec 22 '22 16:12 Natotela

use the Jupyter notebooks:

using text2pointcloud.ipynb # save point cloud to mesh with open('porche_car.ply', 'wb') as f: pc.write_ply(f)

Techdread avatar Dec 24 '22 12:12 Techdread