Skip to content

Commit ecd40df

Browse files
authored
Adding docs for feature-splatting as an external method (#3557)
Add support for feature splatting as an external method
1 parent c7bd953 commit ecd40df

File tree

4 files changed

+105
-1
lines changed

4 files changed

+105
-1
lines changed

docs/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ This documentation is organized into 3 parts:
153153
- [SIGNeRF](nerfology/methods/signerf.md): Controlled Generative Editing of NeRF Scenes
154154
- [K-Planes](nerfology/methods/kplanes.md): Unified 3D and 4D Radiance Fields
155155
- [LERF](nerfology/methods/lerf.md): Language Embedded Radiance Fields
156+
- [Feature Splatting](nerfology/methods/feature_splatting.md): Gaussian Feature Splatting based on GSplats
156157
- [Nerfbusters](nerfology/methods/nerfbusters.md): Removing Ghostly Artifacts from Casually Captured NeRFs
157158
- [NeRFPlayer](nerfology/methods/nerfplayer.md): 4D Radiance Fields by Streaming Feature Channels
158159
- [Tetra-NeRF](nerfology/methods/tetranerf.md): Representing Neural Radiance Fields Using Tetrahedra
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Feature Splatting
2+
3+
<h4>Feature Splatting</h4>
4+
5+
```{button-link} https://feature-splatting.github.io/
6+
:color: primary
7+
:outline:
8+
Paper Website
9+
```
10+
11+
```{button-link} https://github.com/vuer-ai/feature-splatting/
12+
:color: primary
13+
:outline:
14+
Code
15+
```
16+
17+
<video id="teaser" muted autoplay playsinline loop controls width="100%">
18+
<source id="mp4" src="https://feature-splatting.github.io/resources/basic_ns_demo_feature_only.mp4" type="video/mp4">
19+
</video>
20+
21+
**Feature Splatting distills SAM-enhanced CLIP features into 3DGS for segmentation and editing**
22+
23+
## Installation
24+
25+
First install nerfstudio dependencies. Then run:
26+
27+
```bash
28+
pip install git+https://github.com/vuer-ai/feature-splatting
29+
```
30+
31+
## Running Feature Splatting
32+
33+
Details for running Feature Splatting (built with Nerfstudio!) can be found [here](https://github.com/vuer-ai/feature-splatting).
34+
Once installed, run:
35+
36+
```bash
37+
ns-train feature-splatting --help
38+
```
39+
40+
Currently, we provide the following variants:
41+
42+
| Method | Description | Memory | Quality |
43+
| ----------- | ----------------------------------------------- | ------ | ------- |
44+
| `feature-splatting` | Feature Splatting with MaskCLIP ViT-L/14@336px and MobileSAMv2 | ~8 GB | Good |
45+
46+
Note that the reference features used in this version are different from the version used in the paper in two ways
47+
48+
- The SAM-enhanced CLIP features are computed using MobileSAMv2, which is much faster than original SAM but slightly less accurate.
49+
- The CLIP features are computed only on the image-level.
50+
51+
## Method
52+
53+
Feature splatting distills CLIP features into 3DGS by view-independent rasterization, which allows open-vocabulary 2D segmentation and open-vocabulary 3D segmentation of Gaussians directly in the 3D space. This implementation supports simple editing applications by directly manipulating Gaussians.
54+
55+
### Reference feature computation and joint supervision
56+
57+
Feature splatting computes high-quality SAM-enhanced CLIP features as reference features. Compared to coarse CLIP features (such as those used in LERF), Feature splatting performs an object-level masked average pooling of the features to refine the boundary of objects. While the original ECCV'24 paper uses SAM for part-level masks, this implementation uses MobileSAMv2 for much faster reference features computation, which we hope would encourage downstream applications that require real-time performance.
58+
59+
In addition to SAM-enhanced features, we also found that using DINOv2 features as a joint supervision helps regularize the internal structure of objects, which is similar to findings in existing work.
60+
61+
### Scene Editing
62+
63+
Thanks to the explicit representation of 3DGS, grouped Gaussians can be easily manipulated. While the original ECCV'24 paper proposes a series of editing primitives, to avoid introducing excessive dependencies or hacks, we support a subset of editing primitives in this implementation:
64+
65+
Rigid operations
66+
- Floor estimation (for intuitive rotation and gravity estimation)
67+
- Translation
68+
- Transparent (highlights segmented object and turns background Gaussians transparent)
69+
- Rotation (yaw only w.r.t. estimated ground)
70+
71+
Non-rigid operations
72+
- Sand-like melting (based on Taichi MPM method)
73+
74+
<video id="teaser" muted autoplay playsinline loop controls width="100%">
75+
<source id="mp4" src="https://feature-splatting.github.io/resources/ns_editing_compressed.mp4" type="video/mp4">
76+
</video>
77+
78+
If you find our work helpful for your research, please consider citing
79+
80+
```none
81+
@inproceedings{qiu-2024-featuresplatting,
82+
title={Language-Driven Physics-Based Scene Synthesis and Editing via Feature Splatting},
83+
author={Ri-Zhao Qiu and Ge Yang and Weijia Zeng and Xiaolong Wang},
84+
booktitle={European Conference on Computer Vision (ECCV)},
85+
year={2024}
86+
}
87+
```

docs/nerfology/methods/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ The following methods are supported in nerfstudio:
3434
SIGNeRF<signerf.md>
3535
K-Planes<kplanes.md>
3636
LERF<lerf.md>
37+
Feature-Splatting<feature_splatting.md>
3738
Mip-NeRF<mipnerf.md>
3839
NeRF<nerf.md>
3940
Nerfacto<nerfacto.md>

nerfstudio/configs/external_methods.py

+16-1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,21 @@ class ExternalMethod:
9393
)
9494
)
9595

96+
# Feature Splatting
97+
external_methods.append(
98+
ExternalMethod(
99+
"""[bold yellow]Feature-Splatting[/bold yellow]
100+
For more information visit: https://docs.nerf.studio/nerfology/methods/feature_splatting.html
101+
102+
To enable Feature Splatting, you must install it first by running:
103+
[grey]pip install git+https://github.com/vuer-ai/feature-splatting[/grey]""",
104+
configurations=[
105+
("feature-splatting", "Feature Splatting with MaskCLIP ViT-L/14@336px, DINOv2 ViT-S/14, and MobileSAMv2"),
106+
],
107+
pip_package="git+https://github.com/vuer-ai/feature-splatting",
108+
)
109+
)
110+
96111
# Tetra-NeRF
97112
external_methods.append(
98113
ExternalMethod(
@@ -213,7 +228,7 @@ class ExternalMethod:
213228
For more information visit https://docs.nerf.studio/nerfology/methods/zipnerf.html
214229
215230
To enable Zip-NeRF, you must install it first by running:
216-
[grey]pip install git+https://github.com/SuLvXiangXin/zipnerf-pytorch#subdirectory=extensions/cuda
231+
[grey]pip install git+https://github.com/SuLvXiangXin/zipnerf-pytorch#subdirectory=extensions/cuda
217232
and pip install git+https://github.com/SuLvXiangXin/zipnerf-pytorch[/grey]""",
218233
configurations=[
219234
("zipnerf", "A pytorch implementation of 'Zip-NeRF: Anti-Aliased Grid-Based Neural Radiance Fields'")

0 commit comments

Comments
 (0)