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

How do you save the point cloud to ply?

Open torchesburn opened this issue 2 years ago • 2 comments

im using text to point cloud and i get to the last step. And it shows 4 graphs with the model and 4 views.

im on the below step and i usually stop it after 10 mins

# Set a prompt to condition on. prompt = 'boat'

Should I let this stage complete ? I stopped it after about ten minutes and then started the next step which showed the model in a graph viewer png.

torchesburn avatar Dec 22 '22 16:12 torchesburn

hello if you ad this line pc.save('filename.npz') you can save the npz file and then you need to run the pointcloud2mesh at the end there is a line like this
with open('file.ply', 'wb') as f: mesh.write_ply(f) and that creats the ply file it is in your point-e folder ENJOYY!!

eliecer696 avatar Dec 23 '22 18:12 eliecer696

To save from pointcloud to a .ply file, just use pc = sampler.output_to_point_clouds(samples)[0] with open('new_file_name.ply', 'wb') as f: pc.write_ply(f)

xionghao2000 avatar Jan 20 '23 03:01 xionghao2000