Download point_e/examples/Saving Model Code.txt from ByteEd/3DModelGeneration_PointCloud: direct link, hf CLI and curl.
- Browser
- Download file 211 Bytes
-
https://huggingface.co/ByteEd/3DModelGeneration_PointCloud/resolve/main/point_e/examples/Saving%20Model%20Code.txt
- Command line
-
hf download 'hf://ByteEd/3DModelGeneration_PointCloud/point_e/examples/Saving Model Code.txt'
-
curl -L -o 'Saving Model Code.txt' https://huggingface.co/ByteEd/3DModelGeneration_PointCloud/resolve/main/point_e/examples/Saving%20Model%20Code.txt
211 Bytes
| #Attempts to save the point cloud (pc) to a ply file | |
| pc = sampler.output_to_point_clouds(samples)[0] | |
| with open('example_data/blue_bird.ply','wb') as f: | |
| pc.write_ply(f) | |
| #pc.save('example_data/blue_bird.npz') |