Skip to content

Commit

Permalink
Code update
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 547905268
  • Loading branch information
lukegb authored and The jax3d Authors committed Jul 13, 2023
1 parent 0b0ed8e commit 69f320c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions jax3d/projects/generative/common/image_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@ def byte_array_to_image(byte_array: bytes) -> np.ndarray:
return np.array(Image.open(io.BytesIO(byte_array)))


def resize(image_array: np.ndarray,
size: Tuple[int, int],
resample: int = Image.BICUBIC) -> np.ndarray:
def resize(
image_array: np.ndarray,
size: Tuple[int, int],
resample: int = Image.Resampling.BICUBIC,
) -> np.ndarray:
"""Resizes the image to the specified size.
Args:
Expand Down

0 comments on commit 69f320c

Please sign in to comment.