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 #777

Open
xreynaldimiki opened this issue Apr 7, 2024 · 3 comments
Open

ModuleNotFoundError #777

xreynaldimiki opened this issue Apr 7, 2024 · 3 comments

Comments

@xreynaldimiki
Copy link

At the Inference stage I always get an error message (ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor)
I have tried different file types but still get the same message.
Screenshot_2024-04-08-00-41-10-691_com android chrome-edit

@marcobarbierato
Copy link

Edit
torchvision.transforms.functional_tensor
to
torchvision.transforms.functional

This was referenced Apr 8, 2024
@xreynaldimiki
Copy link
Author

the output cannot be edited
Screenshot_2024-04-08-22-49-51-063_com android chrome-edit

@Omnibus-ai
Copy link

Omnibus-ai commented Apr 10, 2024

torchvision==0.16.2 is working until the code in BasicSR is updated to utilize the newest TorchVision syntax

relevant Pull Request for BasicSR:
XPixelGroup/BasicSR#624

TorchVision 0.17.0+
https://github.com/pytorch/vision/releases/tag/v0.17.0

[transforms] We removed the torchvision.transforms.functional_tensor.py and torchvision.transforms.functional_pil.py modules, as these had been deprecated for a while. Use the public functionals from torchvision.transforms.v2.functional instead.

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

3 participants