Giter Club home page Giter Club logo

hnf-derivatives's Introduction

Accurate Differential Operators for Hybrid Neural Fields

This repository contains the associated code for the paper titled

Accurate Differential Operators for Hybrid Neural Fields. Aditya Chetan, Guandao Yang, Zichen Wang, Steve Marschner, Bharath Hariharan.

Updates

  • [2023/12/22] Initial code release.
  • [2023/12/10] Code release coming soon!

Setup

For setting up the environments required for training the models and running the rendering demo, please follow the steps given in setup.

Experiments

Training

For training your own models:

  1. First activate the conda environment for training using:
conda activate hnf-train
  1. First place your mesh that is normalized such that it lies within the $[-1, 1]^3$ hypercube in the data folder.
  2. Then, create a config using one of the examples shared in the configs folder. In most cases, it should be as simple as replacing the path to the mesh with your own.
  3. Then, run the following command:
python3 train.py configs/<your_config>.yaml
  1. If you want to make any changes to any other hyperparameters from the command line, here is an example of how to do it, shown using the learning rate:
python3 train.py configs/<your_config>.yaml --hparams trainer.opt.lr=0.001
  1. For fine-tuning, follow the same commands as training, except that you need to specify the path to the checkpoint you want to fine-tune from:
python3 train.py configs/<your_config>.yaml --resume --pretrained <path_to_checkpoint>

Rendering

In order to view rendering results:

  1. First activate the conda environment for rendering using:
conda activate hnf-render
  1. Now open the notebook rendering.ipynb and set the kernel to hnf-render.
  2. Select the shape you want in the dropdown and run the cells in order.
  3. Feel free to add your own shapes by training models as described above and adding settings for the shape in the settings_dict variable in the notebook.

Citation

If you found the code in this repository useful, please consider citing our paper:

@misc{chetan2023accurate,
      title={Accurate Differential Operators for Hybrid Neural Fields}, 
      author={Aditya Chetan and Guandao Yang and Zichen Wang and Steve Marschner and Bharath Hariharan},
      year={2023},
      eprint={2312.05984},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

Acknowledgements

We thank the authors of torch-ngp, ldif, tiny-cuda-nn for making their code publicly available.

hnf-derivatives's People

Contributors

justachetan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jackzhousz

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.