Skip to content

Commit

Permalink
Empty array bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvschie committed Jan 9, 2025
1 parent dc76d73 commit 470e3df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion research/scripts/mediapipe/multi_person.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def detect_pose_landmarks(self):
if not self.is_recording and len(self.recording) > 0:
self.recorded_frames.append(self.recording)
self.recording = []
if self.is_replaying:
if self.is_replaying and len(self.recorded_frames) > 0:
random_recording = randrange(len(self.recorded_frames))
for replay_frame in self.recorded_frames[random_recording]:
cw.pixels[:] = replay_frame
Expand Down

0 comments on commit 470e3df

Please sign in to comment.