Giter Site home page Giter Site logo

Comments (4)

gengshan-y avatar gengshan-y commented on July 29, 2024

Hi, the code is cleaned up a bit. Hopefully it's more clear.

banmo/nnutils/geom_utils.py

Lines 232 to 234 in 6ce2b0c

# multiply 1000 to make the weights more concentrated
# log_scale controls global temporature scaling
mdis = (-1000 * log_scale.exp() * mdis.sum(3)) # bs,N,B

from banmo.

MayuOshima avatar MayuOshima commented on July 29, 2024

Thank you for your quick reply!
But I still have three questions, sorry.

  1. How did you find the number 1000 to make the weight more concentrated? I mean, why you didn't use other numbers like 100, 2000, for example;
  2. What is the global temporature scaling? I have Googled that but it seems there is not enough information about this term.
  3. Given a mesh, how to get log_scale? If I guess right, it is an inherent attribute of a given mesh, right?

from banmo.

gengshan-y avatar gengshan-y commented on July 29, 2024

Thanks for the follow up.

banmo/nnutils/geom_utils.py

Lines 232 to 235 in 2615647

# log_scale (being optimized) controls temporature of the skinning weight softmax
# multiply 1000 to make the weights more concentrated initially
inv_temperature = 1000 * log_scale.exp()
mdis = (-inv_temperature * mdis.sum(3)) # bs,N,B

To understand the temperature parameter better, perhaps this will help

  1. The factor 1000 is empirically chosen by looking at the resulting skinning weights. 1000 produces skinning weights that has a clear separation between bones. This gives a good starting point for optimization.
    2-3. log_scale is a scalar parameter initialized as 0 and converges to ~1.5.

from banmo.

MayuOshima avatar MayuOshima commented on July 29, 2024

OK! I totally understand that!
Thanks for your clearly reply!

from banmo.

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.