Skip to content

Commit

Permalink
fix visualizer
Browse files Browse the repository at this point in the history
  • Loading branch information
LareinaM committed Sep 20, 2023
1 parent a9251b7 commit 69c9d17
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mmpose/visualization/local_visualizer_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,9 +608,8 @@ def add_datasample(self,
det_img_data = cv2.copyMakeBorder(
det_img_data,
height // 2,
height // 2,
width // 2,
width // 2,
(height // 2 + 1) if height % 2 == 1 else height // 2,
width // 2, (width // 2 + 1) if width % 2 == 1 else width // 2,
cv2.BORDER_CONSTANT,
value=(255, 255, 255))
drawn_img = np.concatenate((det_img_data, pred_img_data), axis=1)
Expand Down

0 comments on commit 69c9d17

Please sign in to comment.