Skip to content
프로젝트

소개

NVFi in PyTorch (NeurIPS 2023)

디자인 및 미디어

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
0

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

NVFi: Neural Velocity Fields for 3D Physics Learning from Dynamic Videos (NeurIPS 2023)

License: CC-BY-NC-SA arXiv

image We present a novel framework to simultaneously learn the geometry, appearance, and physical velocity of 3D scenes only from video frames, such that multiple desirable applications can be supported, including future frame extrapolation, unsupervised 3D semantic scene decompositio, and dynamic motion transfer.

image image image image image

Environment Setup

    # create conda environment
    conda create --name nvfi python=3.9
    
    # activate env
    conda activate nvfi
    conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1  cudatoolkit=11.6 -c pytorch -c conda-forge
    pip install functorch==0.2.1
    
    # If you want to run for segmentation application, run the following
    conda install pytorch3d -c pytorch3d

    # pip install 
    pip install -r requirements.txt

Datasets

Both Dynamic Object and Dynamic Indoor Scene datasets could be downloaded from google drive or from HuggingFace: Dynamic Objects, Dynamic Indoor Scenes, and NVIDIA Dynamic Scenes. We split the data in HuggingFace version for easier evaluation, please follow the datacard there.

Please change the "logdir" and "basedir" in config based on the locations of downloaded datasets.

Training

We provide several config files under config folder for different datasets.

For reconstruction, you can run

python train_nvfi.py --config ./config/InDoorObj/bat.yaml --static_dynamic 

If you want to train the segmentation fields, simply run the following commend

python train_segm.py --config config/InDoorObj/bat.yaml --checkpoint -1

Evaluation

For future frame extrapolation, you can render the results by running

python train_nvfi.py --config ./config/InDoorObj/bat.yaml --checkpoint -1 --not_train --eval_test

For segmentation prediction, you can run

python test_segm_render.py --config config/InDoorObj/bat.yaml --checkpoint -1 --ckpt_segm 1000

Citation

If you find this code useful, please consider cite:

@article{li2023nvfi,
  title={NVFi: Neural Velocity Fields for 3D Physics Learning from Dynamic Videos}, 
  author={Jinxi Li and Ziyang Song and Bo Yang},
  year={2023},
  journal={NeurIPS}
}

관련 프로젝트 살펴보기

불러오는 중…