zju3dv/object_nerf
소개
Code for "Learning Object-Compositional Neural Radiance Field for Editable Scene Rendering", ICCV 2021
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalLearning Object-Compositional Neural Radiance Field for Editable Scene Rendering
Project Page | Video | Paper
Learning Object-Compositional Neural Radiance Field for Editable Scene Rendering
Bangbang Yang, Yinda Zhang, Yinghao Xu, Yijin Li, Han Zhou, Hujun Bao, Guofeng Zhang, Zhaopeng Cui.
ICCV 2021
Installation
We have tested the code on pytorch 1.8.1, while a newer version of pytorch should also work.
conda create -n object_nerf python=3.8
conda activate object_nerf
conda install pytorch==1.8.1 torchvision cudatoolkit=11.1 -c pytorch -c conda-forge
pip install -r requirements.txt
Data Preparation
Please go to the data preparation.
Training
You can run train.py to train the model, and here are two examples.
# train on ScanNet 0113
python train.py dataset_config=config/scannet_base_0113_multi.yml "img_wh=[640,480]" exp_name=my_expr_scannet_0113
# train on ToyDesk 2
python train.py dataset_config=config/toy_desk_2.yml "img_wh=[640,480]" exp_name=my_expr_toydesk_2
Editable Scene Rendering
Here we provide two examples of scene editing with pre-trained models (download link).
ScanNet Object Duplicating and Moving
python test/demo_editable_render.py \
config=test/config/edit_scannet_0113.yaml \
ckpt_path=../object_nerf_edit_demo_models/scannet_0113/last.ckpt \
prefix=scannet_0113_duplicating_moving
ToyDesk Object Rotating
python test/demo_editable_render.py \
config=test/config/edit_toy_desk_2.yaml \
ckpt_path=../object_nerf_edit_demo_models/toydesk_2/last.ckpt \
prefix=toy_desk2_rotating
Remember to change the ckpt_path to the uncompressed model checkpoint file.
You can find the rendered image in debug/rendered_view/render_xxxxxx_scannet_0113_duplicating_moving or debug/rendered_view/render_xxxxxx_toy_desk2_rotating which should look as follows:
Citation
If you find this work useful, please consider citing:
@inproceedings{yang2021objectnerf,
title={Learning Object-Compositional Neural Radiance Field for Editable Scene Rendering},
author={Yang, Bangbang and Zhang, Yinda and Xu, Yinghao and Li, Yijin and Zhou, Han and Bao, Hujun and Zhang, Guofeng and Cui, Zhaopeng},
booktitle = {International Conference on Computer Vision ({ICCV})},
month = {October},
year = {2021},
}
Acknowledgement
In this project we use (parts of) the implementations of the following works:
- nerf_pl by kwea123.
- nerf_pytorch by Yen-Chen Lin.
- scannet by Angela Dai.
We thank the respective authors for open sourcing their methods.
관련 프로젝트 살펴보기
불러오는 중…