File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 80
80
num_seqs = data .shape [0 ]
81
81
82
82
for idx in range (num_seqs ):
83
- # print(idx)
83
+ print (f" idx= { idx } " )
84
84
85
85
joints3d = data [idx ] #*1.2 #scale problem [check first]
86
86
keypoints_3d [0 , :, :] = torch .Tensor (joints3d ).to (device ).float ()
128
128
param ['beta' ] = new_opt_betas .detach ().cpu ().numpy ()
129
129
param ['pose' ] = new_opt_pose .detach ().cpu ().numpy ()
130
130
param ['cam' ] = new_opt_cam_t .detach ().cpu ().numpy ()
131
+
132
+ # save the root position
133
+ # shape of keypoints_3d is torch.Size([1, 22, 3]) and root is the first one
134
+ root_position = keypoints_3d [0 , 0 , :].detach ().cpu ().numpy ()
135
+ print (f"root at { root_position } , shape of keypoints_3d is { keypoints_3d .shape } " )
136
+ param ['root' ] = root_position
137
+
131
138
joblib .dump (param , dir_save + "/" + "%04d" % idx + ".pkl" , compress = 3 )
You can’t perform that action at this time.
0 commit comments