From 8d56e3a045f9fb3e1d8872f92ee4a4f07f886b0a Mon Sep 17 00:00:00 2001 From: Veljko Tornjanski Date: Fri, 17 May 2024 09:34:46 +0200 Subject: [PATCH] change functional_tensor to functional (#650) --- basicsr/data/degradations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basicsr/data/degradations.py b/basicsr/data/degradations.py index 4fa20d4a0..14319605d 100644 --- a/basicsr/data/degradations.py +++ b/basicsr/data/degradations.py @@ -5,7 +5,7 @@ import torch from scipy import special from scipy.stats import multivariate_normal -from torchvision.transforms.functional_tensor import rgb_to_grayscale +from torchvision.transforms.functional import rgb_to_grayscale # -------------------------------------------------------------------- # # --------------------------- blur kernels --------------------------- #