diff --git a/marigold/util/image_util.py b/marigold/util/image_util.py index f88eb29..90f0623 100644 --- a/marigold/util/image_util.py +++ b/marigold/util/image_util.py @@ -1,4 +1,5 @@ # Copyright 2023 Bingxin Ke, ETH Zurich. All rights reserved. +# Last modified: 2024-04-16 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -111,7 +112,7 @@ def get_tv_resample_method(method_str: str) -> InterpolationMode: resample_method_dict = { "bilinear": InterpolationMode.BILINEAR, "bicubic": InterpolationMode.BICUBIC, - "nearest": InterpolationMode.NEAREST, + "nearest": InterpolationMode.NEAREST_EXACT, } resample_method = resample_method_dict.get(method_str, None) if resample_method is None: