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

ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor'麻烦帮我解决下这个问题 #10

Open
Deven-dreamLand opened this issue May 13, 2024 · 1 comment

Comments

@Deven-dreamLand
Copy link

ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor'

@ZZXYWQ
Copy link

ZZXYWQ commented May 18, 2024

这是 basicsr的问题,你试试把\python_embeded\Lib\site-packages\basicsr\data里面的degradations.py第八行:

from torchvision.transforms.functional_tensor import rgb_to_grayscale

改成下面:

from torchvision.transforms.functional import rgb_to_grayscale

应该就行了

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

No branches or pull requests

2 participants