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)