3D surface reconstruction and simulation based on 3D neural rendering.
This repository primarily addresses two topics:
TOC
code_single Single scenecode_multi Multi-object scenecode_large Large-scale sceneSingle-object / multi-object / indoor / outdoor / large-scale surface reconstruction and multi-modal sensor simulation
https://github.com/PJLab-ADG/neuralsim/assets/25529198/ce6ec6fc-2d0e-4c2b-9d91-d1b992d13ff4
https://github.com/PJLab-ADG/neuralsim/assets/25529198/32d6fe6f-39a1-403d-8b12-16d26e092375
https://github.com/PJLab-ADG/neuralsim/assets/25529198/29fff4d9-c70d-4097-8f12-0bc307d339f3
| :rocket: Object surface reconstruction in minutes ! |
Input: posed images without mask
Get started: neus_in_10_minutes
Credits: Jianfei Guo
| :rocket: Outdoor surface reconstruction in minutes !
Input: posed images without mask
Get started: neus_in_10_minutes
Credits: Jianfei Guo
|
| :rocket: Indoor surface reconstruction in minutes !
Input: posed images, monocular cues
Get started: neus_in_10_minutes#indoor
Credits: Jianfei Guo
| :car: Categorical surface reconstruction in the wild !
Input: multi-instance multi-view categorical images
[To be released 2023.09]
Credits: Qiusheng Huang, Jianfei Guo, Xinyang Li
|
| :motorway: Street-view surface reconstruction in 2 hours !
Input: posed images, monocular cues (and optional LiDAR)
Get started: streetsurf
Credits: Jianfei Guo, Nianchen Deng
(Refresh if video won't play) | :motorway: Street-view multi-modal sensor simulation !
Using reconstructed asset-bank
Get started: streetsurf#lidarsim
Credits: Jianfei Guo, Xinyu Cai, Nianchen Deng
(Refresh if video won't play) | | :motorway: Street-view multi-object surfaces reconstruction in hours !
Input: posed images, LiDAR, 3D tracklets
[To be released 2023.09]
Credits: Jianfei Guo, Nianchen Deng
(Refresh if video won't play) | :motorway: Street-view scenario editing !
Using reconstructed asset-bank
[To be released 2023.09]
Credits: Jianfei Guo, Nianchen Deng (Refresh if video won't play) | | :cityscape: Large-scale multi-view surface reconstruction ... (WIP) | :motorway: Street-view light editing ... (WIP) |
%%{init: {'theme': 'neutral', "flowchart" : { "curve" : "basis" } } }%%
graph LR;
0("fa:fa-wrench <b>Basic models & operators</b>
(e.g. LoTD & pack_ops)
<a href='https://github.com/pjlab-ADG/nr3d_lib' target='_blank'>nr3d_lib</a>")
A("fa:fa-road <b>Single scene</b>
[paper] StreetSurf
[repo] <a href='https://github.com/pjlab-ADG/neuralsim' target='_blank'>neuralsim</a>/code_single")
B("fa:fa-car <b>Categorical objects</b>
[paper] CatRecon
[repo] <a href='https://github.com/pjlab-ADG/neuralgen' target='_blank'>neuralgen</a>")
C("fa:fa-globe <b>Large scale scene</b>
[repo] neuralsim/code_large
[release date] Sept. 2023")
D("fa:fa-sitemap <b>Multi-object scene</b>
[repo] neuralsim/code_multi
[release date] Sept. 2023")
B --> D
A --> D
A --> C
C --> D
Pull requests and collaborations are warmly welcomed :hugs:! Please follow our code style if you want to make any contribution.
Feel free to open an issue or contact Jianfei Guo (guojianfei@pjlab.org.cn) or Nianchen Deng (dengnianchen@pjlab.org.cn) if you have any questions or proposals.
| Methods | :rocket: Get started | Official / Un-official | Notes, major difference from paper, etc. |
|---|---|---|---|
| StreetSurf | readme | Official | - LiDAR loss improved |
| NeuS in minutes | readme | Un-official | - support object-centric datasets as well as indoor datasets |
fast and stable convergence without needing mask
large pixel batch size (4096) & pixel error maps | | NGP with LiDAR | readme | Un-official | - using Urban-NeRF's LiDAR loss | | Multi-object reconstruction with unisim's CNN decoder | [WIP] | Un-official
:warning: Largely different | - :warning: only the CNN decoder part is similar to unisim
volumetric ray buffer mering, instead of feature grid spatial merging
our version of foreground hypernetworks and background model StreetSurf (the details of theirs are not released up to now) |
Code: app/renderers/general_volume_renderer.py
We provide a universal implementation of multi-object volume rendering that supports any kind of methods built for volume rendering, as long as a model can be queried with rays and can output opacity_alpha, depth samples t, and other optional fields like rgb, nablas, features, etc.
This renderer is efficient mainly due to:
The figure below depicts the idea of the whole rendering process.

Code: app/resources/scenes.py app/resources/nodes.py
To streamline the organization of assets and transformations, we adopt the concept of generic scene graphs used in modern graphics engines like magnum.
Any entity that possesses a pose or position is considered a node. Certain nodes are equipped with special functionalities, such as camera operations or drawable models (i.e. renderable assets in AssetBank).

| Real-data scene graph | Real-data frustum culling |
|---|---|
![]() |
![]() |
Code: code_multi/tools/manipulate.py (WIP)
Given that different objects are represented by unique networks (for categorical or shared models, they have unique latents or embeddings), it's possible to explicitly add, remove or modify the reconstructed assets in a scene.
We offer a toolkit for performing such scene manipulations. Some of the intriguing edits are showcased below.
| :dancer: Let them dance ! | :twisted_rightwards_arrows: Multi-verse | :art: Change their style ! |
|---|---|---|
| (Refresh if video won't play) | (Refresh if video won't play) | (Refresh if video won't play) |
Credits to Qiusheng Huang and Xinyang Li. |
Please note, this toolkit is currently in its early development stages and only basic edits have been released. Stay tuned for updates, and contributions are always welcome :)
Code: app/resources/observers/lidars.py
Get started:
Credits to Xinyu Cai's team work, we now support simulation of various real-world LiDAR models.
The volume rendering process is guided by our reconstructed implicit surface scene geometry, which guarantees accurate depths. More details on this are in our StreetSurf paper section 5.1.
Code: app/resources/observers/cameras.py
We now support pinhole camera, standard OpenCV camera models with distortion, and an experimental fisheye camera model.
First, clone with submodules:
git clone https://github.com/pjlab-ADG/neuralsim --recurse-submodules -j8 ...
Then, cd into nr3d_lib and refer to nr3d_lib/README.md for the following steps.
code_single Single scenePlease refer to code_single/README.md
code_multi Multi-object scene(WIP)
code_large Large-scale scene(WIP)
$ claude mcp add neuralsim \
-- python -m otcore.mcp_server <graph>