From 6194644bc77c45201bb61b9baab08191e2dc9944 Mon Sep 17 00:00:00 2001 From: Andrew White Date: Mon, 27 Jul 2026 20:48:10 -0500 Subject: [PATCH] fix: load_images passes float crop box to PIL --- dust3r/utils/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dust3r/utils/image.py b/dust3r/utils/image.py index 6312a34..f4dab43 100644 --- a/dust3r/utils/image.py +++ b/dust3r/utils/image.py @@ -111,7 +111,7 @@ def load_images(folder_or_list, size, square_ok=False, verbose=True): else: halfw, halfh = ((2*cx)//16)*8, ((2*cy)//16)*8 if not (square_ok) and W == H: - halfh = 3*halfw/4 + halfh = (3*halfw)//4 img = img.crop((cx-halfw, cy-halfh, cx+halfw, cy+halfh)) W2, H2 = img.size