Skip to content

Commit 4c9103d

Browse files
authored
fix masking issue in interpolate (#161)
* fix masking issue in interpolate * remove and add comments
1 parent 14b3b92 commit 4c9103d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/python/pose_format/numpy/pose_body.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def interpolate(self, new_fps: int = None, kind='cubic'):
339339
for people in points:
340340
new_frames = []
341341
for frames in people:
342-
mask = frames.transpose()[0].mask
342+
mask = frames.transpose()[-1].mask # takes mask from confidence value
343343

344344
partial_steps = ma.array(steps, mask=mask).compressed()
345345

0 commit comments

Comments
 (0)