Git Product home page Git Product logo

Comments (9)

PeizhuoLi avatar PeizhuoLi commented on May 14, 2024

Hi,

Line 373 is because we treat the global position channel as an "extra joint" and it shares the neighbor of the root joint, which is exactly global_part_neighbor.

For line 375, the "neighbor" relation is symmetric, so we add the extra joint (its index is edge_num, the last one) to the neighbor_list of its neighbors.

Hope this will help.

from deep-motion-editing.

ANYMS-A avatar ANYMS-A commented on May 14, 2024

Hi,

Line 373 is because we treat the global position channel as an "extra joint" and it shares the neighbor of the root joint, which is exactly global_part_neighbor.

For line 375, the "neighbor" relation is symmetric, so we add the extra joint (its index is edge_num, the last one) to the neighbor_list of its neighbors.

Hope this will help.

Got it !Thank you so much for the answer!

from deep-motion-editing.

ANYMS-A avatar ANYMS-A commented on May 14, 2024

Hi, I recently found that there might be a mistake when calculating the neighbors of the "global_part_neighbor".

e.g. If you read the .bvh file of "BigVegas", you can use debug mode of the IDE to found that the 22th element of the list which returned by the "find_neighbor" function is not the neighbors of the root joint(if you draw a graph of these 23 bones). It should be [0, 1, 4, 5, 8, 9], but got [0, 1, 2, 4, 5, 8, 9] instead.

I thinks it is because: at first, the index of the root joint is 0, but the "edges" eliminate the root joint, so when we obtain the neighbor_list after the for loop in line #370 of the skeleton.py, the mistake occurs.

global_part_neighbor = neighbor_list[0].copy()

is not the neighbors of the root joint. I think it represents the neighbors of the "LeftUpLeg" of the "BigVegas"'s skeleton.(you could draw out the skeleton graph of the "BigVegas"'s 23 bones to verify it.)

from deep-motion-editing.

PeizhuoLi avatar PeizhuoLi commented on May 14, 2024

Thank you very mush for providing your findings! I think it's indeed a bug and we'll fix it later.

from deep-motion-editing.

fire avatar fire commented on May 14, 2024

Can you describe a way for fixing this? I can retrain my models.

from deep-motion-editing.

PeizhuoLi avatar PeizhuoLi commented on May 14, 2024

global_part_neighbor should be all the edges(armature) that contains joint with index zero. This condition should be used instead of a copy of neighbor_list[0].

from deep-motion-editing.

jdbodyfelt avatar jdbodyfelt commented on May 14, 2024

So if neighbor_list = [] how can this be fixed?

from deep-motion-editing.

fire avatar fire commented on May 14, 2024

@PeizhuoLi I'm having trouble with neighbor_list = []

from deep-motion-editing.

PeizhuoLi avatar PeizhuoLi commented on May 14, 2024

Could you provide more details on how to reproduce this error? Thanks :)

from deep-motion-editing.

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.