Skip to content

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.

@14790897
Copy link

don't worry

I released a fixed version to address this issue. Use pip install basicsr-fixed instead of pip install basicsr.

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

4 participants