← Open Source
Jumpat

SegmentAnythingin3D

Segment Anything in 3D with NeRFs (NeurIPS 2023 & IJCV 2025).

ModelsVision modelsPython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
1.03k
Stars
64
Forks
+0
This week
5
Contributors
Created 2023-04-24 · Updated 2026-09-28 · #11977 today
Top developers
JumpatZanueJaminFong

Jumpat/SegmentAnythingin3D is ranked 11,977 with 1,031 stars.

Same-category comparison

Jumpat/SegmentAnythingin3D is ranked 11,977 among these 8 peers; openai/dalle-2-preview is ranked 11,973.

Same-category comparison
NameRankMetrics
Tencent-Hunyuan/InstantCharacter11,913
Language:
Python
Stars:
1,044
Forks:
93
huggingface/pytorch-pretrained-BigGAN11,930
Language:
Python
Stars:
1,041
Forks:
179
Description:
🦋A PyTorch implementation of BigGAN with pretrained weights and conversion scripts.
Xwin-LM/Xwin-LM11,957
Language:
Python
Stars:
1,036
Forks:
45
Description:
Xwin-LM: Powerful, Stable, and Reproducible LLM Alignment.
openai/dalle-2-preview11,973
Stars:
1,033
Forks:
123
kakaobrain/rq-vae-transformer11,997
Language:
Jupyter Notebook
Stars:
1,028
Forks:
112
Description:
The official implementation of Autoregressive Image Generation using Residual Quantization (CVPR '22).
microsoft/aurora11,999
Language:
Python
Stars:
1,028
Forks:
175
Description:
Implementation of the Aurora model for Earth system forecasting.
Alpha-VLLM/Lumina-DiMOO12,001
Language:
Python
Stars:
1,027
Forks:
64
Description:
Lumina-DiMOO - An Open-Sourced Multi-Modal Large Diffusion Language Model.
QwenLM/Qwen-AgentWorld12,003
Language:
Python
Stars:
1,027
Forks:
100
Description:
Qwen-AgentWorld: Language World Models for General Agents.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryModels
SubcategoryVision models
Keywords3D
Stars1,031
Forks64
Contributors5
Created date2023-04-24
Updated date2026-09-28
Stars in 1 day0
Stars in 7 days0
Rank11,977
Previous rank11,898
Rank change-79
7-day stars rank13,216
Previous 7-day stars rank13,234
7-day stars rank change18
Total stars rank10,899
Previous total stars rank10,886
Total stars rank change-13
CountryChina
README summary

Segment Anything🤖️ in 3D with NeRFs (SA3D) Project Page | Arxiv Paper | Data (Google Drive) Segment Anything in 3D with NeRFs Jiazhong Cen 1\* , Zanwei Zhou 1\* , Jiemin Fang 2,3† , Chen Yang 1 , Wei Shen 1✉ , Lingxi Xie 2 , Dongsheng Jiang 2 , Xiaopeng Zhang 2 , Qi Tian 2 1 AI Institute, SJTU   2 Huawei Inc   3 School of EIC, HUST . \*denotes equal contribution †denotes project lead. *Given a NeRF, just input prompts from **one single view** and then

get your 3D model. * We propose a novel framework to Segment Anything in 3D, named SA3D . Given a neural radiance field (NeRF) model, SA3D allows users to obtain the 3D segmentation result of any target object via only one-shot manual prompting in a single rendered view. The entire process for obtaining the target 3D model can be completed in approximately 2 minutes, yet without any engineering optimization. Our experiments demonstrate the effectiveness of SA3D in different scenes, highlighting the

potential of SAM in 3D scene perception. Update **2025/04/03**: We are excited to release a new dataset for 3D segmentation based on 3D Gaussian Splatting (3D-GS). The dataset features challenging scenes with severe occlusions, reflective surfaces, and multi-granularity segmentation. We warmly welcome the community to explore and use it! **2024/04/16**: We release the 3D-GS version of SA3D (here). Now 3D segmentation can be achieved within seconds! **2023/11/11**: We release the nerfstudio

version of SA3D (here)! Currently it only supports the text prompt as input. **2023/06/29**: We now support MobileSAM as the segmentation network. Follow the installation instruction in MobileSAM, and then download *mobile_sam. Overall Pipeline With input prompts, SAM cuts out the target object from the according view. The obtained 2D segmentation mask is projected onto 3D mask grids via density-guided inverse rendering. 2D masks from other views are then rendered, which are mostly uncompleted but used

as cross-view self-prompts to be fed into SAM again. Complete masks can be obtained and projected onto mask grids. This procedure is executed via an iterative manner while accurate 3D masks can be finally learned. SA3D can adapt to various radiance fields effectively without any additional redesigning. Installation SAM and Grounding-DINO: Download Data We now release the configs on these datasets: *Foward-facing:* LLFF *Inward-facing:* mip-NeRF360, LERF Data structure: (click to expand) Usage Train NeRF

Run SA3D in GUI Render and Save Fly-through Videos Some tips when run SA3D: Increase when the target object is extremely irregular like LLFF scenes *Fern* and *Trex*; Use to specify the camera pose sequence used for training 3D mask, . Using our Dash based GUI: Select which type of prompt to be used, currently support: *Point Prompt* and *Text Prompt*; *Point Prompt:* select in the drop down; click the original image to add a point prompt, then SAM will

produce candidate masks; click to clear out the previous inputs; *Text Prompt:* select in the drop down;input your text

Frequently asked questions

How many stars and forks are recorded?

Jumpat/SegmentAnythingin3D has 1,031 stars and 64 forks.

What is the repository rank?

Jumpat/SegmentAnythingin3D is ranked 11,977.

What language and category are recorded?

Jumpat/SegmentAnythingin3D has 1,031 stars, uses Python and belongs to Models.

Which repository is closest in rank?

Jumpat/SegmentAnythingin3D is compared with openai/dalle-2-preview, ranked 11,973 with 1,033 stars.

README

Segment Anything🤖️ in 3D with NeRFs (SA3D)

Project Page | Arxiv Paper | Data (Google Drive)

Segment Anything in 3D with NeRFs
Jiazhong Cen1*, Zanwei Zhou1*, Jiemin Fang2,3†, Chen Yang1, Wei Shen1✉, Lingxi Xie2, Dongsheng Jiang2, Xiaopeng Zhang2, Qi Tian2
1AI Institute, SJTU   2Huawei Inc   3School of EIC, HUST .
*denotes equal contribution
†denotes project lead.

Given a NeRF, just input prompts from one single view and then get your 3D model.

We propose a novel framework to Segment Anything in 3D, named SA3D. Given a neural radiance field (NeRF) model, SA3D allows users to obtain the 3D segmentation result of any target object via only one-shot manual prompting in a single rendered view. The entire process for obtaining the target 3D model can be completed in approximately 2 minutes, yet without any engineering optimization. Our experiments demonstrate the effectiveness of SA3D in different scenes, highlighting the potential of SAM in 3D scene perception.

Update

  • 2025/04/03: We are excited to release a new dataset for 3D segmentation based on 3D Gaussian Splatting (3D-GS). The dataset features challenging scenes with severe occlusions, reflective surfaces, and multi-granularity segmentation. We warmly welcome the community to explore and use it!
  • 2024/04/16: We release the 3D-GS version of SA3D (here). Now 3D segmentation can be achieved within seconds!
  • 2023/11/11: We release the nerfstudio version of SA3D (here)! Currently it only supports the text prompt as input.
  • 2023/06/29: We now support MobileSAM as the segmentation network. Follow the installation instruction in MobileSAM, and then download mobile_sam.pt into folder ./dependencies/sam_ckpt. You can use --mobile_sam to switch to MobileSAM.

Overall Pipeline

With input prompts, SAM cuts out the target object from the according view. The obtained 2D segmentation mask is projected onto 3D mask grids via density-guided inverse rendering. 2D masks from other views are then rendered, which are mostly uncompleted but used as cross-view self-prompts to be fed into SAM again. Complete masks can be obtained and projected onto mask grids. This procedure is executed via an iterative manner while accurate 3D masks can be finally learned. SA3D can adapt to various radiance fields effectively without any additional redesigning.

Installation

git clone https://github.com/Jumpat/SegmentAnythingin3D.git
cd SegmentAnythingin3D

conda create -n sa3d python=3.10
conda activate sa3d
pip install -r requirements.txt

SAM and Grounding-DINO:

# Installing SAM
mkdir dependencies; cd dependencies 
mkdir sam_ckpt; cd sam_ckpt
wget https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth
git clone git@github.com:facebookresearch/segment-anything.git 
cd segment-anything; pip install -e .

# Installing Grounding-DINO
git clone https://github.com/IDEA-Research/GroundingDINO.git
cd GroundingDINO/; pip install -e .
mkdir weights; cd weights
wget https://github.com/IDEA-Research/GroundingDINO/releases/download/v0.1.0-alpha/groundingdino_swint_ogc.pth

Download Data

We now release the configs on these datasets:

Data structure:

(click to expand)

data
├── 360_v2             # Link: https://jonbarron.info/mipnerf360/
│   └── [bicycle|bonsai|counter|garden|kitchen|room|stump]
│       ├── poses_bounds.npy
│       └── [images|images_2|images_4|images_8]
│
├── nerf_llff_data     # Link: https://drive.google.com/drive/folders/14boI-o5hGO9srnWaaogTU5_ji7wkX2S7
│   └── [fern|flower|fortress|horns|leaves|orchids|room|trex]
│       ├── poses_bounds.npy
│       └── [images|images_2|images_4|images_8]
│
└── lerf_data               # Link: https://drive.google.com/drive/folders/1vh0mSl7v29yaGsxleadcj-LCZOE_WEWB
    └── [book_store|bouquet|donuts|...]
        ├── transforms.json
        └── [images|images_2|images_4|images_8]

Usage

  • Train NeRF
    python run.py --config=configs/llff/fern.py --stop_at=20000 --render_video --i_weights=10000
    
  • Run SA3D in GUI
    python run_seg_gui.py --config=configs/llff/seg/seg_fern.py --segment \
    --sp_name=_gui --num_prompts=20 \
    --render_opt=train --save_ckpt
    
  • Render and Save Fly-through Videos
    python run_seg_gui.py --config=configs/llff/seg/seg_fern.py --segment \
    --sp_name=_gui --num_prompts=20 \
    --render_only --render_opt=video --dump_images \
    --seg_type seg_img seg_density
    

Some tips when run SA3D:

  • Increase --num_prompts when the target object is extremely irregular like LLFF scenes Fern and Trex;
  • Use --seg_poses to specify the camera pose sequence used for training 3D mask, default='train', choices=['train', 'video'].

Using our Dash based GUI:

TODO List

  • [ ] Refine the GUI, e.g., start from any train view, add more training hyper-parameter options, etc.;
  • [ ] Support the two-pass stage in GUI; currently it may have some bugs.

Some Visualization Samples

SA3D can handle various scenes for 3D segmentation. Find more demos in our project page.

Forward facing 360° Multi-objects

Acknowledgements

Thanks for the following project for their valuable contributions:

Citation

If you find this project helpful for your research, please consider citing the report and giving a ⭐.

@inproceedings{cen2023segment,
      title={Segment Anything in 3D with NeRFs}, 
      author={Jiazhong Cen and Zanwei Zhou and Jiemin Fang and Chen Yang and Wei Shen and Lingxi Xie and Dongsheng Jiang and Xiaopeng Zhang and Qi Tian},
      booktitle    = {NeurIPS},
      year         = {2023},
}
@article{cen2025segment,
      title={Segment Anything in 3D with Radiance Fields}, 
      author={Jiazhong Cen and Jiemin Fang and Zanwei Zhou and Chen Yang and Lingxi Xie and Xiaopeng Zhang and Wei Shen and Qi Tian},
      journal    = {IJCV},
      year         = {2025},
}
Nearby in the ranking
Similar items