chzh9311 / structural-triangulation

The official implementation of Structural Triangulation
Apache License 2.0
30 stars 2 forks source link

How to get npy file for bone lengths? #1

Closed Jungduri closed 1 year ago

Jungduri commented 1 year ago

Thank you for sharing your codes and great idea first. I would like to test it using Human36M data, but I guess I cannot understand where can I get bone lengths data.

In detail, according to your config.py file, I can find "S9 bone lengths path", which is necessary to run test code. However, while I review several times in the repo of learnable-triangulation-pytorch, I still dont figure how to generate them.

Please, give me a clue to handle it. Thank you!

chzh9311 commented 1 year ago

That's indeed a problem I haven't noticed. I ignored codes from our local repo which I thought are "redundent"... Well, it seems an update is needed.

For bone lengths data, you may get estimated ones by running get_bl() function in test.py, but codes to calculate ground truth bone lengths are currently missing in this repo. I'll revise the repo this weekend and the updated version will hopefully contain comprehensive codes and instructions to get necessary data (or simply links from google drives 🤣 ).

Thanks for pointing out this problem.

Jungduri commented 1 year ago

Appreciate your reply. It would be a great chance for me to obtain such a valuable idea.

I hope I can access your full code soon.

+plus, When you update it, please positively consider to share pickle file too:).

chzh9311 commented 1 year ago

Links to 2D estimation data (pickle file) updated in README. You may follow the steps to get bone lengths and finish the tests : )

Jungduri commented 1 year ago

Thanks for your quick update!

I have tested it on the new commit, and it works 100% fine without error. The result is amazing. Thanks again.