预编译 wheel 已过期,需自行编译 CUDA 代码,新 wheel 对应 PyTorch 2.7.0 与 CUDA 12.8;复现论文结果需额外下载 ShapeNet、Points2Surf、CARLA 数据集;训练与推理依赖 Zeus 基础设施,需先复制并修改 zeus.yaml 配置路径。

NKSR
nv-tlabs活跃维护从稀疏或带噪声的点云重建高质量三维表面,基于神经核场方法,适合三维重建与图形学研究。
[CVPR 2023 Highlight] Neural Kernel Surface Reconstruction
git clone [email protected]:nv-tlabs/nksr.git
cd nksr
conda env create -f environment.yml
conda activate nksr
pip install -r requirements.txt
pip install --no-build-isolation package/README 提到可在 RTX 3090 GPU 上重建跨越数公里、含百万级点的场景;未说明 CPU 运行方式及其他 GPU 型号要求。
从大规模稀疏噪声点云重建三维隐式表面的 NVIDIA 神经核方法,几秒内处理百万级点
从稀疏或带噪声的点云重建高质量三维表面,基于神经核场方法,适合三维重建与图形学研究。
核心能力
- 用紧支撑核函数配合稀疏线性求解器扩展到大型场景
- 通过梯度拟合求解提升对噪声点云的鲁棒性
- 可从任意稠密带朝向点集训练,混合物体与场景数据
- 支持 out-of-core 方式处理超大规模场景
- 提供 kitchen-sink 预训练模型直接推理出网格
容易踩的坑
暂无 release 数据(可能没有发版,或尚未同步)。
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
Neural Kernel Surface Reconstruction

Neural Kernel Surface Reconstruction Jiahui Huang, Zan Gojcic, Matan Atzmon, Or Litany, Sanja Fidler, Francis Williams Paper, Project Page
Abstract: We present a novel method for reconstructing a 3D implicit surface from a large-scale, sparse, and noisy point cloud. Our approach builds upon the recently introduced Neural Kernel Fields (NKF) representation. It enjoys similar generalization capabilities to NKF, while simultaneously addressing its main limitations: (a) We can scale to large scenes through compactly supported kernel functions, which enable the use of memory-efficient sparse linear solvers. (b) We are robust to noise, through a gradient fitting solve. (c) We minimize training requirements, enabling us to learn from any dataset of dense oriented points, and even mix training data consisting of objects and scenes at different scales. Our method is capable of reconstructing millions of points in a few seconds, and handling very large scenes in an out-of-core fashion. We achieve state-of-the-art results on reconstruction benchmarks consisting of single objects, indoor scenes, and outdoor scenes.
For business inquiries, please visit our website and submit the form: NVIDIA Research Licensing
News
- 2025-09-08: Due to the expiration of the pre-built wheels, we uploaded the full CUDA code so that users can compile on their own. The new wheel is compatible with PyTorch 2.7.0 and CUDA 12.8.
- 2023-06-24: Want to build a mesh from an iPhone scan? Our friend Phong Nguyen Ha kindly shared his tutorial for doing this! Check it out here.
- 2023-06-08: Code released!
Environment setup
We recommend using the latest Python and PyTorch to run our algorithm. To install all dependencies using conda:
# Clone the repository
git clone [email protected]:nv-tlabs/nksr.git
cd nksr
# Create conda environment
conda env create -f environment.yml
conda activate nksr
pip install -r requirements.txt
# Build NKSR
pip install --no-build-isolation package/
Testing NKSR on your own data
We have tested our algorithm on multiple different spatial scales. It can reconstruct scenes spanning kilometers with millions of points+ on an RTX 3090 GPU.
To use our kitchen-sink model (released under CC-BY-SA 4.0 license), the following code snippet suffices:
import torch
import nksr
bunny_geom = load_bunny_example()
input_xyz = torch.from_numpy(np.asarray(bunny_geom.points)).float().to(device)
input_normal = torch.from_numpy(np.asarray(bunny_geom.normals)).float().to(device)
reconstructor = nksr.Reconstructor(device)
field = reconstructor.reconstruct(input_xyz, input_normal, detail_level=1.0)
mesh = field.extract_dual_mesh(mise_iter=1)
We have prepared detailed instructions about data preparation and different example usages at NKSR Documentation Page.
Reproducing results from the paper
Our training and inference system is based on the Zeus Deep Learning infrastructure, supporting both tensorboard and wandb (recommended) as loggers. To config Zeus, copy the default yaml file and modify the related paths:
cp configs/default/zeus.yaml zeus_config.yaml
Modify the contents of zeus_config.yaml as needed to include your wandb account name and checkpoint/test results save directory.
Training
Data download links:
- ShapeNet: Data is available here (taken from Occupancy Networks). Put the extracted
onetfolder under../data/shapenet. - Points2Surf: Data is available here. We've used blensor to re-generate all the data following the original script in order to obtain input normals.
- CARLA: Data is available here.
The main training script is train.py. We provide different config files for the different datasets we've benchmarked in our paper:
# ShapeNet small noise 1K input
python train.py configs/shapenet/train_1k_perfect.yaml
# ShapeNet medium noise 3K input
python train.py configs/shapenet/train_3k_noise.yaml
# ShapeNet big noise 3K input
python train.py configs/shapenet/train_3k_noiser.yaml
# Points2Surf dataset noisy input
python train.py configs/points2surf/train.yaml
# CARLA dataset
python train.py configs/carla/train.yaml
In addition, you can manually specify different training settings to obtain models that suit your needs. Common flags include:
--wname: Additional experiment name to specify for wandb logger.--voxel_size: Size of the finest level of voxels.--feature: Additional feature to the encoder,nonefor nothing,normal(default) for normal input,sensorfor sensor direction input.--tree_depth: Depth of the sparse feature hierarchy. Default is 4.
Inference
You can either infer using your own trained models or our pre-trained checkpoints.
# From pre-trained checkpoints
python test.py configs/shapenet/train_3k_noise.yaml --url https://huggingface.co/heiwang1997/nksr-checkpoints/resolve/main/checkpoints/snet-n3k-wnormal.pth --exec udf.enabled=False
python test.py configs/points2surf/train.yaml --url https://huggingface.co/heiwang1997/nksr-checkpoints/resolve/main/checkpoints/p2s.pth --include configs/points2surf/data_abc_test.yaml
python test.py configs/carla/train.yaml --url https://huggingface.co/heiwang1997/nksr-checkpoints/resolve/main/checkpoints/carla.pth --include configs/carla/data_no_patch.yaml
# From your own trained models
python test.py none --ckpt wdb:<WANDB_USER_NAME>/<WANDB_PROJECT>/<WANDB_RUN_ID>
Useful flags for test.py include:
-vor--visualize: visualize the results during the test process.--test_print_metrics: print the metrics during testing.--test_n_upsample: level of geometric upsample. Recommended value is 4.
License
Copyright © 2023, NVIDIA Corporation & affiliates. All rights reserved. This work is made available under the Nvidia Source Code License.
Related Works
NKSR is highly based on the following existing works:
- Williams et al. 2021. Neural Fields as Learnable Kernels for 3D Reconstruction.
- Huang et al. 2022. A Neural Galerkin solver for Accurate Surface Reconstruction.
Citation
@inproceedings{huang2023nksr,
title={Neural Kernel Surface Reconstruction},
author={Huang, Jiahui and Gojcic, Zan and Atzmon, Matan and Litany, Or and Fidler, Sanja and Williams, Francis},
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
pages={4369--4379},
year={2023}
}