Skip to content

Commit

Permalink
Update image_util.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nandometzger authored May 13, 2024
1 parent f58e947 commit c79fd1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion marigold/util/image_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ def resize_max_res(
new_width = int(original_width * downscale_factor)
new_height = int(original_height * downscale_factor)

# round it up or down to the next multiple of 8 to avoid upsampling misalignments due to smaller latent dimension
# round it up or down to the next multiple of 8
# to avoid upsampling misalignments due to smaller latent dimension
if div8:
new_width = round(new_width / 8) * 8
new_height = round(new_height / 8) * 8
Expand Down

0 comments on commit c79fd1b

Please sign in to comment.