BasicSR icon indicating copy to clipboard operation
BasicSR copied to clipboard

Update degradations.py

Open gordon0907 opened this issue 2 years ago • 3 comments

Summary: Fix #533 functional_tensor not found

The torchvision.transforms.functional_tensor module is deprecated since torchvision 0.15, and it will be no longer available in 0.17

Change import source of rgb_to_grayscale from torchvision.transforms.functional_tensor to torchvision.transforms.functional, so as to avoid the deprecation warning

gordon0907 avatar Jun 02 '23 15:06 gordon0907

Please merge this PR!!

piperwolters avatar Dec 11 '23 20:12 piperwolters