Skip to content
4 changes: 2 additions & 2 deletions src/transformers/models/janus/modular_janus.py
Original file line number Diff line number Diff line change
Expand Up @@ -1499,8 +1499,8 @@ def resize(
delta = size / max_size
# Largest side becomes `size` and the other side is scaled according to the aspect ratio.
output_size_nonpadded = [
max(int(height * delta), self.min_size),
max(int(width * delta), self.min_size),
max(round(height * delta), self.min_size),
max(round(width * delta), self.min_size),
]

image = resize(
Expand Down