Giter Site home page Giter Site logo

Comments (4)

xiangdonglai avatar xiangdonglai commented on May 26, 2024 3

If you are still interested in exporting our estimated motion to BVH, we've provided an example in C++ that uses our BVH exporter.

Please checkout 'FitAdam/bvh.cpp'. After recompiling the C++ project, you can 'cd FitAdam/' and run './build/bvh'; it will generate an 'output.bvh' file containing the first 10 frames of the dancing sequence (assuming you have already generated our estimation result).

from monoculartotalcapture.

xiangdonglai avatar xiangdonglai commented on May 26, 2024

You can try to use our BVHWriter code, but this is not guaranteed as it is not a core part of our work. An example is

// 'g_total_model' is an object of Adam model
BVHWriter bvhwriter(g_total_model.m_parent);
// 'J0_vec' is the T-pose skeleton, 'ts' and 'poses' are vectors of global translation and pose parameters for different time steps.
bvhwriter.parseInput(J0_vec, ts, poses);
bvhwriter.writeBVH(std::string("temp.bvh"), 1.0/30);

from monoculartotalcapture.

j-min avatar j-min commented on May 26, 2024

Could you please elaborate more in detail what g_total_model.m_parent, J0_vec, ts and poses are?
How can we find these values in code and paper?
Can these be read from output file so that we can run this script as standalone?
If not, where should we put the example code in run_fitting.cpp?

g_total_model.m_parent seems to be initialized here.
Is this just an initialization constant for Adam model for any skeleton in any time step?

What does 'J0_vec is the T-pose skeleton' mean? Where can we obtain value for J0_vec?

Does ts correspond to this, and poses correspond to this?

from monoculartotalcapture.

xiangdonglai avatar xiangdonglai commented on May 26, 2024

g_total_model is initialized after calling

    // initialize total model
    LoadTotalModelFromObj(g_total_model, std::string("model/mesh_nofeet.obj"));
    LoadModelColorFromObj(g_total_model, std::string("model/nofeetmesh_byTomas_bottom.obj"));  // contain the color information
    LoadTotalDataFromJson(g_total_model, std::string("model/adam_v1_plus2.json"), std::string("model/adam_blendshapes_348_delta_norm.json"), std::string("model/correspondences_nofeet.txt"));
    LoadCocoplusRegressor(g_total_model, std::string("model/regressor_0n1_root.json"));

J0_vec is the zero-pose skeleton for the BVH file, it is compute here.

You are right about ts and poses. You need vectors of both of them that contain the results for every frame. To be simple, you can create another executable where you initialize the model, read in the produced result files and call BVHWriter.

from monoculartotalcapture.

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.