Git Product home page Git Product logo

tf-nlr's Introduction

tf-nlr

An unofficial implementation of Neural Lumigraph Rendering in TensorFlow 2.
Undergraduate project by Laura Ann Perkins, New College of Florida.

3D model reconstructed with tf-nlr

This project is based on the 2021 paper Neural Lumigraph Rendering. I first started working on this project back in July 2021, before the code for MetaNLR++ had been released. This is the first open-source implementation of their original paper.

Requirements

  • This project requires Python 3.6+ with TensorFlow 2.5.0 (among other dependencies).
  • For the SIREN models, it builds upon tf_siren.
  • To run the Jupyter notebook, download the free NLR dataset and place nlr_dataset in a folder named data in the root directory.

Usage

To get started with tf-nlr, check out the Jupyter notebook. There you can see how to:

  • load a pre-trained model.
  • train your own model.
  • render fitted views.
  • render novel views.

You can train a model from scratch with train.py.

python train.py --dataset_path path/to/data/folder --img_ratio scale_ratio --out_folder path/to/output/folder

To evaluate a fitted model, run test.py.

python test.py --model path/to/fitted/model --dataset_path path/to/data/folder --img_ratio scale_ratio

Note that img_ratio divides the image dimensions. So if you enter img_ratio=5, the images will be five times smaller.

For more options, try running either script with the help flag, e.g. python train.py -h, or edit the config file.

Pretrained models

The h5 directory contains two trained models. The folder pretrain is a training initialization; the neural SDF is initialized to a radius of 0.5. The folder L1 contains a trained model for the scene titled L1 in the NLR dataset.

tf-nlr's People

Contributors

laura-a-n-n avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tf-nlr's Issues

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.