Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Generation #5

Open
priyapaul opened this issue Feb 28, 2017 · 6 comments
Open

Data Generation #5

priyapaul opened this issue Feb 28, 2017 · 6 comments

Comments

@priyapaul
Copy link

priyapaul commented Feb 28, 2017

Tried to run demo_skel2RR.m file after copying the .mat generated in the first step and I got the following error

>> demo_skel2RR
 1

Error using svd
Input to SVD must not contain NaN or Inf.

Error in myscript_5_calculate_RR_W (line 32)
[U, S, V] = svd(S0);

Error in skel2RR (line 20)
[ R, ~, ~ ] =  myscript_5_calculate_RR_W( hip_points_wangchuyu2, hip_points_scape, weights );

Error in demo_skel2RR (line 40)
  [ RR,  R ] = skel2RR( skel, skel_scape );

I printed the values, and found it has a nan, what could be the reason, how to fix it?

skel =

   1.0e+06 *

    0.0000         0         0
    0.0000    0.0000    0.0000
         0    0.0000    0.0000
    0.0000    0.0000    0.0000
    0.0000    0.0000       NaN
    0.0000    0.0000    0.0000
    0.0000    0.0000    0.0000
    0.0000    0.0000    0.0000
   -0.2052    0.2239   -0.1732
    0.9907    0.1787   -0.1732
    1.0224    0.0280   -0.1732
    1.6550   -0.1944    0.3118
    0.9785    0.1787   -0.1732
    1.4086   -0.5319   -0.6151
    1.5216   -0.1191   -0.6151
@priyapaul priyapaul changed the title Data Genr Data Generation Feb 28, 2017
@chen1474147
Copy link
Owner

Are your input be some, weird skeletons?

Or there are two same points in one skeleton?

If so, SVD will output error.

You may choose skeletons from CMU mocap dataset

@priyapaul
Copy link
Author

I followed the exact steps in your description . This means the same data you have used when runnign run demo_generateskel.m, an I got cmu_skeletons.mat which has a nan, I do not know why there is a nan in your dataset(which you said is taken from mocap dataset)

Human Poses

To generate human models, you should define their poses first. We use CMU Mocap Database as pose sources. This database contains about 4 million poses. To better cover the pose space, we also learn a Bayesian network from these poses.

To generate poses, You can enter 1-skel directory and run demo_generateskel.m directory. It will generate cmu_skeletons.mat, which contains part of poses from CMU Mocap Database.

To acquire more poses, you can download the asf & amc format zipfile from CMU Mocap Database and unzip them in data/asfamc directory.

Note that the code doesn't include the Bayesian network code. You can download it from the original website and use the generated poses as input to learn the model.

We adjust pose format from CMU format to our own format. See images in sources directory. Then we use poses to generate human models.

Human models

To generate human models, we adopt SCAPE. This model decomposes a human mesh into a set of pose parameters and shape parameters. You can generate infinite meshes by adjusting different poses and shapes.

To generate models, first you need to copy the cmu_skeletons.mat into 2-model directory. Then you can run demo_skel2RR.m and demo_RR2obj.m. The first m file will generate cmu_RR.mat file, which is used to transfer poses to rotation matrices. The scond m file will call scape to generate human models. The models are generated in data/models directory.

@chen1474147
Copy link
Owner

So you mean that you find a nan in cmu_skeletons.mat?

It must be something wrong because a skeleton should be real number rather than nan.

Which step lead to nan? demo_generateskel.m?

@priyapaul
Copy link
Author

yes! demo_generateskel.m

@chen1474147
Copy link
Owner

I am sorry
I directly downoad the code and test the demo
but it seems everything goes well...

for i = 1:14
a = skeletons(i).data;
b = find(isnan(a(:)));
disp(b)
end

are you using data from my data folder or your own data?

@priyapaul
Copy link
Author

data from your folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants