Buckets:
| # Copyright (c) Meta Platforms, Inc. and affiliates. | |
| import sys | |
| # import inference code | |
| sys.path.append("notebook") | |
| from inference import Inference, load_image, load_single_mask | |
| # load model | |
| tag = "hf" | |
| config_path = f"checkpoints/{tag}/pipeline.yaml" | |
| inference = Inference(config_path, compile=False) | |
| # load image (RGBA only, mask is embedded in the alpha channel) | |
| image = load_image("notebook/images/shutterstock_stylish_kidsroom_1640806567/image.png") | |
| mask = load_single_mask("notebook/images/shutterstock_stylish_kidsroom_1640806567", index=14) | |
| # run model | |
| output = inference(image, mask, seed=42) | |
| # export gaussian splat | |
| output["gs"].save_ply(f"splat.ply") | |
| print("Your reconstruction has been saved to splat.ply") | |
Xet Storage Details
- Size:
- 723 Bytes
- Xet hash:
- 2546295fce9e4d9818b7380281366a29aaf9cc32f969528c6f704581b7f4f70f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.