From 111b36a9495c2d808f8fbe88d59b1187eb41c2af Mon Sep 17 00:00:00 2001 From: awsr <43862868+awsr@users.noreply.github.com> Date: Wed, 13 May 2026 20:42:05 -0700 Subject: [PATCH] Fix incorrect Resampling enum --- pipelines/lumina_dimmo/lumina_dimoo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipelines/lumina_dimmo/lumina_dimoo.py b/pipelines/lumina_dimmo/lumina_dimoo.py index 649e34d0a..ce3cc7d1c 100644 --- a/pipelines/lumina_dimmo/lumina_dimoo.py +++ b/pipelines/lumina_dimmo/lumina_dimoo.py @@ -1687,7 +1687,7 @@ def preprocess_image(image: Image.Image): image = image.convert("RGB") w, h = image.size w, h = (x - x % 32 for x in (w, h)) - image = image.resize((w, h), resample=Image.LANCZOS) + image = image.resize((w, h), resample=Image.Resampling.LANCZOS) image = np.array(image).astype(np.float32) / 255.0 image = image[None].transpose(0, 3, 1, 2) image = torch.from_numpy(image)