Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tf_bodypix/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def get_colored_part_mask(
part_colors=part_colors
)

def get_poses(self) -> List[Pose]:
def get_poses(self, maxPoseDetections=10) -> List[Pose]:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def get_poses(self, maxPoseDetections=10) -> List[Pose]:
def get_poses(self, max_pose_detections: int = 2) -> List[Pose]:

assert self.heatmap_logits is not None
assert self.short_offsets is not None
assert self.displacement_fwd is not None
Expand All @@ -354,7 +354,7 @@ def get_poses(self) -> List[Pose]:
displacementsFwdBuffer=np.asarray(self.displacement_fwd[0]),
displacementsBwdBuffer=np.asarray(self.displacement_bwd[0]),
outputStride=self.output_stride,
maxPoseDetections=2
maxPoseDetections=maxPoseDetections
)
scaled_poses = scaleAndFlipPoses(
poses,
Expand Down