Coder Social home page Coder Social logo

nerf-pytorch's Introduction

nerf-pytorch

A PyTorch re-implementation

Open Tiny-NeRF in Colab

A PyTorch re-implementation of Neural Radiance Fields.

Tiny-NeRF on Google Colab

The NeRF code release has an accompanying Colab notebook, that showcases training a feature-limited version of NeRF on a "tiny" scene. It's equivalent PyTorch notebook can be found at the following URL:

https://colab.research.google.com/drive/1rO8xo0TemN67d4mTpakrKrLp03b9bgCX

How to train your NeRF

To train a "full" NeRF model (i.e., using 3D coordinates as well as ray directions, and the hierarchical sampling procedure), first setup dependencies. In a new conda or virtualenv environment, run

pip install requirements.txt

Importantly, install torchsearchsorted by following instructions from their README.

Once everything is setup, to run experiments, first edit config/default.yml to specify your own parameters.

The training script can be invoked by running

python train_nerf.py --config config/default.yml

Optionally, if resuming training from a previous checkpoint, run

python train_nerf.py --config config/default.yml --load-checkpoint path/to/checkpoint.ckpt

(Full) NeRF on Google Colab

A Colab notebook for the full NeRF model (albeit on low-resolution data) can be accessed here.

A note on reproducibility

All said, this is not an official code release, and is instead a reproduction from the original code (released by the authors here).

I have currently ensured (to the best of my abilities, but feel free to open issues if you feel something's wrong :) ) that

  • Every individual module exactly (numerically) matches that of the TensorFlow implementation. This Colab notebook has all the tests, matching op for op (but is very scratchy to look at)!
  • Training works as expected for fairly small resolutions (100 x 100).

However, this implementation still lacks the following:

  • I have not run all the full experiments devised in the paper.
  • I've only tested on the lego sequence of the synthetic (Blender) datasets.

The organization of code WILL change around a lot, because I'm actively experimenting with this.

Pretrained models: I am running a few large-scale experiments, and I hope to release models sometime in the end of April.

Contributing / Issues?

Feel free to raise GitHub issues if you find anything concerning. Pull requests adding additional features are welcome too.

LICENSE

nerf-pytorch is available under the MIT License. For more details see: LICENSE and ACKNOWLEDGEMENTS.

nerf-pytorch's People

Contributors

krrish94 avatar

Watchers

 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.