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))