Git Product home page Git Product logo

Comments (2)

jonbarron avatar jonbarron commented on May 2, 2024

Hey, good questions.

The only reason for the sigmoid "padding" exists it that helped optimization in some corner cases, like when the learning rate is very large. This is because sigmoids saturate for very large or very small inputs, which causes the gradient to go to zero, which can cause optimization to catastrophically fail. Padding means that the model can emit 0 or 1 without saturating the sigmoid and therefore killing the gradients.

Shrinking the range of the sigmoid is probably going to cause problems in some circumstances, because it means that absolute white and absolute black will both be inexpressible for the model. I'd expect this to drive rgb values to the tails of this sigmoid, which will cause dead gradients.

It makes sense to me that playing with this parameter will affect how "clean" the acc images look. I'm personally of the opinion that the performance on the background of those Blender objects isn't super meaningful: When the background is a white void, it's equally "correct" to say that distant regions are empty (in which case NeRF's rendering model will fill it in with white if the flags are set accordingly) or to say that distant regions are occupied with dense white stuff. Both answers will produce equivalently good test-set rendering accuracy. If the model can't easily express rgb=1 (which is the cause for a non-padded sigmoid) then it will say that the background is empty, and if it can easily express rgb=1 then it might fill in the background or might not. Whether that is a good or bad thing depends on the application.

from mipnerf.

JulianKnodt avatar JulianKnodt commented on May 2, 2024

Thanks for the thorough answer!

It makes sense that shrunken sigmoid saturates and that will cause dead gradients for color, but my main thinking is that having it be padded allows an equivalence between alpha = 0, rgb != 0, and alpha != 0, rgb = 0, whereas with normal sigmoid it never reaches 0 except in the limit, thus guiding the model to infer alpha = 0. I'm experimenting on the D-NeRF dataset with a shrunken sigmoid, and found this to lead to better results than a widened one because it may learn some view dependent components for fully black space in some views. I suspect for just novel views, either one works equally well.

from mipnerf.

Related Issues (20)

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.