Giter Site home page Giter Site logo

bone2skeleton conversion about motionet HOT 4 CLOSED

shimingyi avatar shimingyi commented on May 20, 2024
bone2skeleton conversion

from motionet.

Comments (4)

Shimingyi avatar Shimingyi commented on May 20, 2024

Hello! A good question!

We use this function to convert the bone length to T-skeleton, in here we haven't apply the horizontal offsets on Knees and Ankles because we found this kind of setting will be more similar to various character model, so it's better for skinning and other processes.

20200910150611

But because we only apply positional loss directly in our training, so the model can also converage if you use different setting.

from motionet.

snitchjinx avatar snitchjinx commented on May 20, 2024

Thanks!

from motionet.

longbowzhang avatar longbowzhang commented on May 20, 2024

Hi @Shimingyi
I am also curious about the bones2skel function in model.py.
I guess this function constructs the skeleton in terms of relative positions based on the following two oberservations.

  • skel_in[:, 2, 1] = -unnorm_bones[:, 0, 1] means the position of RKnee is unnorm_bones[:, 0, 1] below (i.e., negative y-axis) its parent joint RHip, and there is no horizontal offset w.r.t RHip.
  • as shown in the function of transforms_global in model_zoo.py, the positions (i.e., the constructed skeleton) is first used to build locals.

But I would like to double check with you about bones2skel whether it expresses the t-pose skeleton in terms of relative positions or absolute positions.

Many thanks.

from motionet.

Shimingyi avatar Shimingyi commented on May 20, 2024

Hi@longbowzhang ,

You are right, it's not the absolute position in a 3d space. Each value is the relative position compared to its parent joint.
This code can help you to undersantd it better: get_skel

Best,
Mingyi

from motionet.

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.