BasicSR
BasicSR copied to clipboard
Update degradations.py
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
Please merge this PR!!