point-e
point-e copied to clipboard
How do you save the point cloud to ply?
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.
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!!
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)