From 0fdb9bc42d91ec527b164469b817e6a069ffa150 Mon Sep 17 00:00:00 2001 From: pavan kumar Date: Wed, 15 May 2024 14:50:15 +0530 Subject: [PATCH] PIL.Image.LINEAR > PIL.Image.BILINEAR --- segmentation_models_pytorch/datasets/oxford_pet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/segmentation_models_pytorch/datasets/oxford_pet.py b/segmentation_models_pytorch/datasets/oxford_pet.py index a8e2804c..c4a1b02c 100644 --- a/segmentation_models_pytorch/datasets/oxford_pet.py +++ b/segmentation_models_pytorch/datasets/oxford_pet.py @@ -87,7 +87,7 @@ def __getitem__(self, *args, **kwargs): sample = super().__getitem__(*args, **kwargs) # resize images - image = np.array(Image.fromarray(sample["image"]).resize((256, 256), Image.LINEAR)) + image = np.array(Image.fromarray(sample["image"]).resize((256, 256), Image.BILINEAR)) mask = np.array(Image.fromarray(sample["mask"]).resize((256, 256), Image.NEAREST)) trimap = np.array(Image.fromarray(sample["trimap"]).resize((256, 256), Image.NEAREST))