Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update degradations.py #624

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

gordon0907
Copy link

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

Change import source of `rgb_to_grayscale` from `torchvision.transforms.functional_tensor` to `torchvision.transforms.functional`
@piperwolters
Copy link

Please merge this PR!!

@lightandshadow68
Copy link

lightandshadow68 commented Sep 23, 2024

This is no longer a warning. It's throwing an error. A number of libraries use BasicSR as a dependency, so patching my code isn't a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

functional_tensor not found
3 participants