diff --git a/src/python/pose_format/numpy/pose_body.py b/src/python/pose_format/numpy/pose_body.py index 60d60ea..4f01618 100644 --- a/src/python/pose_format/numpy/pose_body.py +++ b/src/python/pose_format/numpy/pose_body.py @@ -339,7 +339,7 @@ def interpolate(self, new_fps: int = None, kind='cubic'): for people in points: new_frames = [] for frames in people: - mask = frames.transpose()[0].mask + mask = frames.transpose()[-1].mask # takes mask from confidence value partial_steps = ma.array(steps, mask=mask).compressed()