Comments (4)
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.
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.
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.
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)
- How to get the model? HOT 1
- Server posefs1.perception.cs.cmu.edu Offline
- BUILD ERROR : Glew HOT 12
- Docker is built successfully, but cannot run HOT 1
- about pose_to_transforms
- What's the difference between this work and 3D pose estimation? HOT 1
- Problems with remote server operation
- Problems running on remote servers HOT 1
- How to save the fitting result to obj files?
- Error during docker installation. HOT 9
- CMakeFiles/igl.dir/build.make:1420: recipe for target 'CMakeFiles/igl.dir/include/igl/dual_contouring.cpp.o' failed #1729
- undefined reference to `glewInit' undefined reference to `__glewUseProgram' Renderer.cpp:(.text+0x435): undefined reference to `__glewGenVertexArrays' HOT 1
- There only 30 frames generated by the method while processing a half body video. HOT 1
- posefs1.perception.cs.cmu.edu/mtc seems down, alternative site? HOT 8
- does it work with opencv version 4.2?
- question about save test time
- ---solved
- Error when fitting Adam HOT 1
- question about the time of mesh tracking project
- Unable to download data. http://posefs1.perception.cs.cmu.edu/mtc/mtc_snapshots.zip Timeouts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monoculartotalcapture.