Comments (7)
Thanks. I would try it
from smpl-anthropometry.
Hi,
In the main part of measure.py
you can see how to generate the measurements:
Lines 721 to 738 in 6e21bef
The measurer.measurements
and measurer.labeled_measurements
are python dictionaries of measurements, which you can convert easily to json.
To use on your own data, you can adapt the same snippet i shared above. If you want to initialize the body model with the vertices of an already fitted SMPL body model to your scan, you can use:
MeasureSMPL(...).from_verts(verts)
instead of
MeasureSMPL(...).from_smpl(betas, gender)
as it says in the README file.
from smpl-anthropometry.
thanks for answering. So, what kind of input data I need to have? I'm still get in trouble about this.
from smpl-anthropometry.
There are two options for the input data:
- SMPL shape (called betas with dimension 1 x 10) and gender parameters. In this case you can initialize the measurer with:
MeasureSMPL(...).from_smpl(betas, gender)
- SMPL body vertices (called verts, dimension 6890 x 3). In this case you can initialize the measurer with:
MeasureSMPL(...).from_verts(verts)
In the first case your SMPL body is defined by its parameters, and in the second case it's defined with its vertices.
from smpl-anthropometry.
So, let me make a conclusion. If I want to use my own data, I need to have .obj file and fit the .from_verts function, right? If not, what kind of file type should I have. Sorry to bother you.
from smpl-anthropometry.
Yes, that is one of the options. Having 6890 3D vertices from the .obj file that correspond to an SMPL model. Then you can use the .from_verts function.
No problem -- I refined the README file to hopefully make things a bit more clear. Checkout the Running section and let me know if there are more questions.
from smpl-anthropometry.
Closing issue -- feel free to re-open if you will have further questions.
from smpl-anthropometry.
Related Issues (15)
- Can visualize T-Pose? HOT 2
- how can i use the .obj file to measure? HOT 2
- Licence HOT 1
- Custom Measurements HOT 1
- Getting weight measurement HOT 13
- converts a 2D image into a 3D image HOT 1
- How to input own data? HOT 11
- Can we put actual person Height to calculate with the other body parts ? HOT 2
- Is it possible to change Verts Dimension ? HOT 4
- please share link for SMPL_NEUTRAL.pkl HOT 2
- How to measure specific body parts? HOT 2
- How to load my own .pkl file or .obj file to measure? HOT 4
- Enable to use SMPLX model HOT 7
- How to measure length between the two mouse cursor? HOT 2
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 smpl-anthropometry.