Skip to content

Commit

Permalink
Update src/transformers/models/vitpose/image_processing_vitpose.py
Browse files Browse the repository at this point in the history
Co-authored-by: amyeroberts <[email protected]>
  • Loading branch information
SangbumChoi and amyeroberts authored Sep 4, 2024
1 parent 8132991 commit b446563
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/transformers/models/vitpose/image_processing_vitpose.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ def post_dark_udp(coords, batch_heatmaps, kernel=3):
`np.ndarray` of shape `(num_persons, num_keypoints, 2)` ):
Refined coordinates.
"""
if not isinstance(coords, np.ndarray):
coords = coords.cpu().numpy()
if not isinstance(batch_heatmaps, np.ndarray):
batch_heatmaps = batch_heatmaps.cpu().numpy()
batch_size, num_keypoints, height, width = batch_heatmaps.shape
num_coords = coords.shape[0]
if not (batch_size == 1 or batch_size == num_coords):
Expand Down

0 comments on commit b446563

Please sign in to comment.