Giter Site home page Giter Site logo

Test code on KPT method about dir HOT 2 OPEN

pengfeiren96 avatar pengfeiren96 commented on June 11, 2024
Test code on KPT method

from dir.

Comments (2)

walsvid avatar walsvid commented on June 11, 2024

Hi, @ChanglongJiangGit, we modified the public code of KPT to align the definition of evaluation. Since it was modified based on KPT, this part of the code is not in this codebase. According to the definition of evaluation metrics, this part of the modification is not complicated. If you need more help we can provide guidance on how to modify the code. cc @PengfeiRen96

from dir.

ChanglongJiangGit avatar ChanglongJiangGit commented on June 11, 2024

Thanks for your response!
When we modified the code ourselves, we found that the order of hand joint point coordinates defined by MANO was different from the order defined by the interhand2.6M data set. In MANO, the root joint coordinate is 0 and MCP is 9, but corresponding to interhand2.6m, the root joint is 20 and MCP is 11. So we calculated the result after coordinate transformation, similar code is:
pred_joint_coord_cam[self.joint_type['right']] = pred_joint_coord_cam[self.joint_type['right']] - pred_joint_coord_cam[11,None,:]
gt_joint_coord[self.joint_type['right']] = gt_joint_coord[self.joint_type['right']] - gt_joint_coord[11,None,:]
length_right_gt = np.linalg.norm(gt_joint_coord[11] - gt_joint_coord[20], axis=-1)
scale_right = (length_right_gt / (length_right_pred))
Then scale through this scale parameter. Is this code correct?

from dir.

Related Issues (8)

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.