Skip to content

Incorrect FPS with synthesized IMU? #3

@Yefancy

Description

@Yefancy

https://github.com/SPICExLAB/MobilePoser/blob/main/mobileposer/process.py#L15

TARGET_FPS = 30

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions