Skip to content

Commit

Permalink
Fix image processing
Browse files Browse the repository at this point in the history
  • Loading branch information
geopavlakos authored Nov 1, 2023
1 parent 894bcf6 commit 5fd6f45
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion phalp/utils/utils_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ def process_image(img, center, scale, output_size=256):
std = np.array([58.395, 57.120, 57.375])

img, _, _ = generate_image_patch(img, center[0], center[1], scale, scale, output_size, output_size, False, 1.0, 0.0)
img = img[:, :, ::-1].copy().astype(np.float32)
img_n = img[:, :, ::-1].copy().astype(np.float32)
for n_c in range(3):
img_n[:, :, n_c] = (img_n[:, :, n_c] - mean[n_c]) / std[n_c]
Expand Down

0 comments on commit 5fd6f45

Please sign in to comment.