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

How to save the model and use it directly next time?

Open xionghao2000 opened this issue 2 years ago • 1 comments

xionghao2000 avatar Dec 28 '22 03:12 xionghao2000

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)

moluuser avatar Aug 05 '23 09:08 moluuser