Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

change resize interpolation default mode to nearest #352

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
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 flash/image/segmentation/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def default_transforms(image_size: Tuple[int, int]) -> Dict[str, Callable]:
"post_tensor_transform": nn.Sequential(
ApplyToKeys(
[DefaultDataKeys.INPUT, DefaultDataKeys.TARGET],
KorniaParallelTransforms(K.geometry.Resize(image_size, interpolation='bilinear')),
KorniaParallelTransforms(K.geometry.Resize(image_size, interpolation='nearest')),
),
),
"collate": Compose([kornia_collate, ApplyToKeys(DefaultDataKeys.TARGET, prepare_target)]),
Expand Down