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

No module named 'torchvision.transforms.functional_tensor' #663

Closed
cncloudli opened this issue Mar 12, 2024 · 1 comment
Closed

No module named 'torchvision.transforms.functional_tensor' #663

cncloudli opened this issue Mar 12, 2024 · 1 comment

Comments

@cncloudli
Copy link

cncloudli commented Mar 12, 2024

在某些版本pytorch(2.2.1)中,torchvision.transforms.functional_tensor的名字改了,改成了torchvision.transforms._functional_tensor,导致data\degradations.py这个文件里面导入这个包时会出错,修改包名后可正常运行
In some versions of Pytorch (for example, 2.2.1), the name of the module "torchvision.transforms.functional_tensor" has been modified to "torchvision.transforms._functional_tensor", which would cause an error when import this module in the file "data\degradations.py". Editing the name of the module could solve this issue.

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
@cncloudli and others