Skip to content
wkim97Public

About

Adversarial Perturbations Guided with Sensitivity for Protecting Intellectual Property of Neural Radiance Fields (BMVC 2025)

Resources

Stars

6 stars

Watchers

0 watching

Forks

Repository files navigation

AegisRF

Official code for AegisRF: Adversarial Perturbations Guided with Sensitivity for Protecting Intellectual Property of Neural Radiance Fields (BMVC 2025). [arXiv]

Setup

git clone --recursive https://github.com/wkim97/AegisRF.git
cd AegisRF
docker build -t aegisrf .
docker run --gpus all -it --rm -v $PWD:/workspace/AegisRF aegisrf

Without Docker:

pip install -r requirements.txt
pip install --no-build-isolation third_party/NeRF_RPN/nerf_rpn/model/rotated_iou/cuda_op

Data

data/
├── nerf_synthetic/{chair,drums,ficus,hotdog,lego,materials,mic,ship}/
└── nerf_rpn/
    ├── scannet_nerf_data/{scene}/
    ├── scannet_rpn_data/
    │   ├── features/{scene}.npz
    │   └── obb/{scene}.npy
    └── nerf_rpn_model_release/scannet_anchor_swinS.pt
checkpoints/
├── nerf_synthetic/{scene}.tar
└── classifier/vit_b_16.pth

Multi-view classification

Dataset. Download nerf_synthetic.zip from the NeRF data and extract it to data/nerf_synthetic. All 8 scenes are used at 224 × 224. The train split (100 views per scene) is used to train the NeRFs, AegisRF and the classifier, the val split (100 views) to select the classifier, and the test split (200 views) for evaluation.

NeRFs. Train a NeRF on each scene. This writes checkpoints/nerf_synthetic/{scene}.tar:

for SCENE in chair drums ficus hotdog lego materials mic ship; do
    python train_nerf.py --scene $SCENE
done

Target model. A ViT-B/16 classifier over the 8 scenes, trained from scratch on images rendered from the NeRFs at the train and val views. This writes checkpoints/classifier/vit_b_16.pth:

python train_classifier.py

3D localization

Dataset. 10 ScanNet scenes of the NeRF-RPN dataset: scene0000_00, scene0030_00, scene0246_00, scene0250_00, scene0430_00, scene0529_00, scene0575_00, scene0593_00, scene0621_00 and scene0697_00. Download and extract to data/nerf_rpn:

  • scannet_nerf_data.zip: posed images and the pre-trained Dense Depth Priors NeRF of each scene (scannet_nerf_data/{scene}/checkpoint/).
  • scannet_rpn_data.zip: NeRF-RPN input grids and oriented bounding boxes. The archive contains another scannet_rpn_data.zip; extract both.

Target model. The pre-trained NeRF-RPN on ScanNet with the Swin-S backbone and the anchor-based head. Download nerf_rpn_model_release/scannet_anchor_swinS.pt from the same release to data/nerf_rpn/nerf_rpn_model_release/.

Training and evaluation

python train_cls.py --scene lego --nerf_ckpt checkpoints/nerf_synthetic/lego.tar --out_dir logs/classification/lego
python eval_cls.py --ckpt logs/classification/lego/030000.pt

python train_loc.py --scene scene0000_00 --out_dir logs/localization/scene0000_00
python eval_loc.py --ckpt logs/localization/scene0000_00/030000.pt

To run all scenes:

bash scripts/classification.sh
bash scripts/localization.sh

Citation

@inproceedings{kim2025aegisrf,
  title     = {AegisRF: Adversarial Perturbations Guided with Sensitivity for Protecting Intellectual Property of Neural Radiance Fields},
  author    = {Kim, Woo Jae and Han, Kyu Beom and Cho, Yoonki and Na, Youngju and Jung, Junsik and Son, Sooel and Yoon, Sung-eui},
  booktitle = {British Machine Vision Conference (BMVC)},
  year      = {2025}
}

Acknowledgements

This code builds on nerf-pytorch, Dense Depth Priors NeRF and NeRF-RPN.

License

MIT License

About

Adversarial Perturbations Guided with Sensitivity for Protecting Intellectual Property of Neural Radiance Fields (BMVC 2025)

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages