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

smpl only have 69 poses #437

Open
koukau77 opened this issue Oct 25, 2024 · 1 comment
Open

smpl only have 69 poses #437

koukau77 opened this issue Oct 25, 2024 · 1 comment

Comments

@koukau77
Copy link

I run the convert2bvh.py and I found the smpl file just have 69 poses. It should be 72.

   
0  
id 0
Rh  
0  
0 -2.796
1 0.019
2 -0.623
Th  
0  
0 -0.122
1 -0.72
2 4.401
poses  
0  
0 0.237
1 0.127
2 0.109
3 0.267
4 -0.071
5 0.029
6 -0.041
7 0.014
8 0.02
9 -0.118
10 0.039
11 -0.037
12 -0.28
13 0.019
14 0.057
15 -0.054
16 -0.017
17 0.007
18 0.024
19 0.191
20 -0.12
21 -0.068
22 -0.14
23 0.118
24 0.036
25 -0.015
26 0.026
27 -0.139
28 0.091
29 0.159
30 0.079
31 -0.01
32 -0.161
33 -0.063
34 0.019
35 0.069
36 0.081
37 0.169
38 -0.358
39 0.008
40 -0.016
41 0.387
42 0.004
43 -0.059
44 -0.001
45 0.184
46 0.011
47 -0.91
48 0.229
49 0.162
50 0.966
51 0.331
52 -0.724
53 0.232
54 0.274
55 0.663
56 -0.156
57 0.073
58 -0.191
59 -0.129
60 0.062
61 0.108
62 0.085
63 -0.281
64 -0.012
65 -0.154
66 -0.097
67 0.051
68 0.131
shapes  
0  
0 0.479
1 0.5
2 -0.492
3 0.509
4 -0.35
5 0.002
6 -0.003
7 0.402
8 -0
9 0.249
@blxl909
Copy link

blxl909 commented Nov 30, 2024

I notice this form another issue

If you don't use the translation, you can simple replace the first 3-dimension of poses by Rh.

so I change code in convert2bvh.py

def merge_params(param_list, share_shape=True):
    output = {}
    for key in ['poses', 'shapes', 'Rh', 'Th', 'expression']:
        if key in param_list[0].keys():
            output[key] = np.vstack([v[key] for v in param_list])
    output['poses'] = np.concatenate((output['Rh'] , output['poses']),axis=1)
    if share_shape:
        print(output['poses'].shape)
        output['shapes'] = output['shapes'].mean(axis=0, keepdims=True)
    return output

then I retarget with rokoko,maybe it works fine
1732937066756

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