Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion segmentation_models_pytorch/datasets/oxford_pet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down