https://github.com/SPICExLAB/MobilePoser/blob/main/mobileposer/process.py#L15
according to your code, I noticed that you sampling the motion to 30hz
however, the acceleration generation is 60Hz
https://github.com/SPICExLAB/MobilePoser/blob/main/mobileposer/process.py#L23-L32
def _syn_acc(v, smooth_n=4):
"""Synthesize accelerations from vertex positions."""
mid = smooth_n // 2
acc = torch.stack([(v[i] + v[i + 2] - 2 * v[i + 1]) * 3600 for i in range(0, v.shape[0] - 2)])
acc = torch.cat((torch.zeros_like(acc[:1]), acc, torch.zeros_like(acc[:1])))
if mid != 0:
acc[smooth_n:-smooth_n] = torch.stack(
[(v[i] + v[i + smooth_n * 2] - 2 * v[i + smooth_n]) * 3600 / smooth_n ** 2
for i in range(0, v.shape[0] - smooth_n * 2)])
return acc
I double check the transpose codebase, they were using the 60hz both motion and acceleration by default.
https://github.com/Xinyu-Yi/TransPose/blob/main/preprocess.py
I'm not sure whether it will cause a bug?
https://github.com/SPICExLAB/MobilePoser/blob/main/mobileposer/process.py#L15
according to your code, I noticed that you sampling the motion to
30hzhowever, the acceleration generation is
60Hzhttps://github.com/SPICExLAB/MobilePoser/blob/main/mobileposer/process.py#L23-L32
I double check the transpose codebase, they were using the
60hzboth motion and acceleration by default.https://github.com/Xinyu-Yi/TransPose/blob/main/preprocess.py
I'm not sure whether it will cause a bug?