Code Monkey home page Code Monkey logo

fourier-dnn's Introduction

fourier-dnn

Tests

Tensorflow 2.0 implementation of fourier feature mapping networks.

Based on the paper "Fourier Features Let Networks Learn High Frequency Functions in Low Dimensional Domains".

Results

Results after training fourier feature mapping models for around 100-200 epochs.

Setup

  • Git clone
  • Install the package locally (the -e flag means that any changes you make here in the code will be reflected in the package)
    pip install -e .

Usage

Check out the 2D image regression example for an example usage.

Run the example using:

python ./fourier_dnn/2d_image_regression.py 3 100

where 3 is the image index from the dataset (of 16 images) and 100 is the number of epochs. (Dataset taken from the original implementation)

Use fourier_dnn.ffm_mlp.FourierMLP to make a complete fourier feature mapping network. For example:

model = FourierMLP(10, 256, 3,
                   gaussian=True, staddev=16,
                   num_units_FFM=256)

Use fourier_dnn.metrics.PSNR as a metric for model.compile to get PSNR values on every epoch.

Weights and Biases reports

fourier-dnn's People

Contributors

ashishasokan avatar samyak2 avatar varunp2k avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  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.