stevengogogo / CNF

Official Implementation of Constrained Neural Fields (CNF)

Home Page:https://zfc946.github.io/CNF.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Constrained Neural Fields

Still training a neural field with a regression loss and hoping for it to overfit? What if we enforce the regression loss to be zero as a hard constraint in the formulation of a neural field?

This repository is the official implementation of the paper Neural Fields with Hard Constraints of Arbitrary Differential Order, NeurIPS 2023.

Getting Started

Prerequisites

  • Python 3.x

Dependencies

pip install -r requirements.txt

Demos

Fermat's Principle

python fit_Fermat.py

Learning Material Appearance

First, download the MERL dataset from https://www.merl.com/brdf/, replace PATH/TO/MERL/DATASET at line 203 of fit_brdf.py with the path to the MERL dataset, then run

python fit_brdf.py

Interpolatory Shape Reconstruction

Exact Normal Reconstruction

python fit_exact_normal.py

Large Scale Reconstruction (Sparse Solver)

python fit_pointcloud_3d.py

Self-Tuning PDE Solver

python fit_advection.py

About

Official Implementation of Constrained Neural Fields (CNF)

https://zfc946.github.io/CNF.github.io/


Languages

Language:Python 100.0%