Skip to content
AoxiangFanPublic

About

Offical code for ICCV 2025 paper: A View-consistent Sampling Method for Regularized Training of Neural Radiance Fields

Resources

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[ICCV 25] VS-NeRF

This is the official code release of paper "A View-consistent Sampling Method for Regularized Training of Neural Radiance Fields"

Paper | Project page

Running VS-NeRF

Our implementation is built upon on the nerfstudio project.

Installation

Please follow the instructions in nerfstudio installation to install nerfstudio.

After that, run

pip install -e .

in nerfstudio environment under this repo, which will register VS-NeRF as a nerfstudio method.

Our code was tested with torch 2.1.2+cu118 and nerfstudio 1.0.1 on Ubuntu 22.04.

Running

After installation, simply run

ns-train vs_nerf --output-dir outputs/test --data /PATH/scene --pipeline.model.fa_sampling True --pipeline.model.depth_loss True vs_nerf_colmap --train_image_number 50

directly under this repo for training VS-NeRF.

In the arguments, --pipeline.model.fa_sampling is a flag for view-consistent sampling, --pipeline.model.depth_loss is a flag for depth loss. We also implemented a dataparser, where you can dowmsample the dataset to a fixed number defined by --train_image_number.

The implemented vs_nerf_colmap dataparser works with Mip-NeRF 360 dataset. The scene path should be given after '--data'. You can also use nerfstudio dataparser for custom data.

Training Feature Distillation

Preparation

We follow DISK to prepare the dataset, please see instructions there. Additionally, 'torch_dimcheck' should be installed on top of the nerfstudio environment.

Training

Before training, you must indicate the dataset path in train_path in feature_distillation/configs/train_megadepth.yaml.

Then, navigate to vs_nerf/feature_distillation, and run

python3 train_distilled_feature.py --config_path configs/train_megadepth.yaml

Note that you might need to login to wandb first.

Acknowledgements

We greatly appreciate these amazing projects which make ours possible: DISK, diffusion_hyperfeatures, nerfstudio.

Citation

If you find the paper or code useful, please cite us as:

@inproceedings{aoxiang2025vsnerf,
  title={A View-consistent Sampling Method for Regularized Training of Neural Radiance Fields},
  author={Fan, Aoxiang and Dumery, Corentin and Talabot, Nicolas and Fua, Pascal},
  booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision},
  year={2025}
}

About

Offical code for ICCV 2025 paper: A View-consistent Sampling Method for Regularized Training of Neural Radiance Fields

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages