Coder Social home page Coder Social logo

jackzhousz / vision-nerf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ken2576/vision-nerf

0.0 0.0 0.0 7.72 MB

Official PyTorch Implementation of paper "Vision Transformer for NeRF-Based View Synthesis from a Single Input Image", WACV 2023.

License: MIT License

Python 100.00%

vision-nerf's Introduction

Vision Transformer for NeRF-Based View Synthesis from a Single Input Image

arXiv

car_gif

chair_gif

Official PyTorch Implementation of paper "Vision Transformer for NeRF-Based View Synthesis from a Single Input Image", WACV 2023.

Kai-En Lin1* Lin Yen-Chen2 Wei-Sheng Lai3 Tsung-Yi Lin4** Yi-Chang Shih3 Ravi Ramamoorthi1

1University of California, San Diego, 2Massachusetts Institute of Technology, 3Google, 4NVIDIA

* Work done while interning at Google, ** Work done while at Google.

Project Page | Paper | Pretrained models

Requirements

Install required packages

Make sure you have up-to-date NVIDIA drivers supporting CUDA 11.1 (10.2 could work but need to change cudatoolkit package accordingly)

Run

conda env create -f environment.yml
conda activate visionnerf

Usage

  1. Clone the repository git clone https://github.com/ken2576/vision-nerf.git and download dataset from PixelNeRF.

  2. Download pretrained model weights.

    Here is a list of the model weights:

    • nmr_500000.pth: Our pretrained weights for the category-agnostic experiment.
    • srn_cars_500000.pth: Our pretrained weights for the category-specific experiment on ShapeNet Cars.
    • srn_chairs_500000.pth: Our pretrained weights for the category-specific experiment on ShapeNet Chairs.
  3. Install requirements conda env create -f environment.yml.

  4. Setup configurations in configs.

  5. (Optional) Run training script with python train.py --config [config_path].

  6. Run inference script with our pretrained models:

python eval.py --config [path to config file] # For ShapeNet Cars/Chairs
python eval_nmr.py --config [path to config file] # For NMR
python gen_real.py --config [path to config file] # For real car data

Prepare real data

Our pretrained model works with real car images. You can prepare the data using the same process as PixelNeRF.

Then, run gen_real.py similar to the above example.

Acknowledgement

This code is based on DPT, IBRNet and PixelNeRF.

Citation

@inproceedings {lin2023visionnerf,
    booktitle = {WACV},
    title = {Vision Transformer for NeRF-Based View Synthesis from a Single Input Image},
    author = {Lin, Kai-En and Yen-Chen, Lin and Lai, Wei-Sheng and Lin, Tsung-Yi and Shih, Yi-Chang and Ramamoorthi, Ravi},
    year = {2023},
}

vision-nerf's People

Contributors

ken2576 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.