My Authors
Read all threads
I have been playing with my 2D toy example of NeRF (matthewtancik.com/nerf) that implemented to understand the role of positional encoding (PE).

code: github.com/ankurhanda/ner…

left is the dataset image, middle is results with PE and right is without it. It really helps.
This is the summary of my experiment
This figure in the paper really intrigued me arxiv.org/abs/2003.08934 so I set up a very toy 2D example to understand this. The difference in the results is significant.
Here are the results on **cool cows** image. Left is the dataset image, middle is the result with positional encoding and right without it.
I also think this has some semblance to the famous paper from rahimi & recht where they use random fourier features

Paper: people.eecs.berkeley.edu/~brecht/papers…
Most of the synthetic images I used in this experiment come from POVRay Hall of Fame

Glasses: hof.povray.org/glasses.html

Cool Cows: povray.org/community/hof/…
house image hof.povray.org/dhouse39.html
This is with random fourier features with scale and random phase shift

people.eecs.berkeley.edu/~brecht/papers…
Trying various periodic functions with scales and phase shifts (cc @peteflorence). Both scale and phase shift are needed.

Left is PE, middle is random fourier features and right is sawtooth.
All these functions seem to perform better than raw (x, y). It was meant as a fun experiment and I was more interested in finding various general class of functions that perform better at this experiment.
These are results with **8 layers of MLPs** of 128 features each with ReLU and BatchNorm.

Left is dataset image, middle is PE and right is raw (x, y).
Missing some Tweet in this thread? You can try to force a refresh.

Enjoying this thread?

Keep Current with Ankur Handa

Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!