point-e
point-e copied to clipboard
How to save the model and use it directly next time?
Hi, maybe below code can help you.
if os.path.exists(pc_path):
print('load point cloud...')
with open(pc_path, 'rb') as f:
pc = pickle.load(f)
else:
print('draw point cloud...')
pc = get_point_cloud_from_image(image_path)
with open(pc_path, 'wb') as f:
pickle.dump(pc, f)