Git Product home page Git Product logo

Comments (8)

zhan-xu avatar zhan-xu commented on August 14, 2024

The animation shows one application of the predicted rigs. What we did is applying some automatic motion retargeting technique to transfer the motion from a reference animation to the predicted rigs. The correspondences here between two sets of joints are manually assigned.

from rignet.

Andrewymd avatar Andrewymd commented on August 14, 2024

thanks

from rignet.

Andrewymd avatar Andrewymd commented on August 14, 2024

from rignet.

zhan-xu avatar zhan-xu commented on August 14, 2024

OK. As stated in our paper, the evaluation of skinning weights is performed using ground-truth skeletons, so that the error from skeleton prediction doesn't influence this part.

To evaluate skinning weights, you first run

python run_skinning -e --resume="checkpoints/skinnet/model_best.pth.tar" --checkpoint="checkpoints/skinnet" --train_folder='DATASET_DIR/train/' --val_folder='DATASET_DIR/val/' --test_folder='DATASET_DIR/test/' --info_folder='DATASET_DIR/rig_info_remesh/'

It will output the skinning results in results/skinnet folder.

Then you can evaluate it with this script

Note that the skinnet is updated a few weeks ago. You can try the latest skinnet model, which can be downloaded from the same link as before.

from rignet.

Andrewymd avatar Andrewymd commented on August 14, 2024

from rignet.

zhan-xu avatar zhan-xu commented on August 14, 2024

For each model loaded into Maya, I randomly picked three joints (excluding the root joint), added a random rotation to these three joints, and saved the deformed mesh to disk. After this I compared the vertices displacement in python. So the poses are not the same. They are all randomly generated.

Some functions you may be interested (used in mayapy):

Get all joints as a dictionary:

def getJointDict(root):
    joint_pos = {}
    this_level = [root]
    while this_level:
        next_level = []
        for p_node in this_level:
            jpos = cmds.xform( p_node, query=True, translation=True, worldSpace=True )
            joint_pos[p_node] = {}
            joint_pos[p_node]['pos'] = jpos
            joint_pos[p_node]['ch'] = []
            ch_list = cmds.listRelatives(p_node, children=True, type='joint')
            pa_list = cmds.listRelatives(p_node, parent=True, type='joint')
            if ch_list is not None:
                joint_pos[p_node]['ch'] += ch_list
                next_level += ch_list
            if pa_list is not None:
                joint_pos[p_node]['pa'] = pa_list[0]
            else:
                joint_pos[p_node]['pa'] = 'None'
        this_level = next_level
    return joint_pos

Rotate a joint:

cmds.rotate(angles[0], angles[1], angles[2], rot_joint, ws=True, r=True)

from rignet.

Andrewymd avatar Andrewymd commented on August 14, 2024

from rignet.

zhan-xu avatar zhan-xu commented on August 14, 2024

Thank you. I appreciate it.

from rignet.

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.