Instructions to use ncc2/4DAnything with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- SAM 3D Objects
How to use ncc2/4DAnything with SAM 3D Objects:
from inference import Inference, load_image, load_single_mask from huggingface_hub import hf_hub_download path = hf_hub_download("ncc2/4DAnything", "pipeline.yaml") inference = Inference(path, compile=False) image = load_image("path_to_image.png") mask = load_single_mask("path_to_mask.png", index=14) output = inference(image, mask) - Notebooks
- Google Colab
- Kaggle
Add README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: sam-license
|
| 4 |
+
license_link: LICENSE
|
| 5 |
+
library_name: pytorch
|
| 6 |
+
pipeline_tag: image-to-3d
|
| 7 |
+
tags:
|
| 8 |
+
- 4d-reconstruction
|
| 9 |
+
- gaussian-splatting
|
| 10 |
+
- video-to-4d
|
| 11 |
+
- sam-3d-objects
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# 4DAnything
|
| 15 |
+
|
| 16 |
+
Weights for **4DAnything: Generalizable Feed-Forward 4D Reconstruction In-The-Wild**.
|
| 17 |
+
|
| 18 |
+
- Project page: https://4danything.github.io/
|
| 19 |
+
- Code: https://github.com/4DAnything/4DAnything
|
| 20 |
+
|
| 21 |
+
| File | Description |
|
| 22 |
+
| --- | --- |
|
| 23 |
+
| `ss.pt` | video backbone, sparse-structure stage (shape + camera-space layout) |
|
| 24 |
+
| `slat.pt` | video backbone, structured-latent stage (appearance) |
|
| 25 |
+
| `decoder.pt` | 4D decoder: canonical Gaussians G\* and per-frame deformation |
|
| 26 |
+
|
| 27 |
+
These weights are fine-tuned from [SAM 3D Objects](https://huggingface.co/facebook/sam-3d-objects), which is also required at inference (gated; request access there).
|
| 28 |
+
|
| 29 |
+
Download with the code repo's script:
|
| 30 |
+
|
| 31 |
+
```bash
|
| 32 |
+
hf auth login
|
| 33 |
+
bash scripts/download_checkpoints.sh
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
## License
|
| 37 |
+
|
| 38 |
+
Derived from SAM 3D Objects and distributed under the [SAM License](LICENSE).
|