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' #246

Open
zachysaur opened this issue Jun 6, 2024 · 6 comments

Comments

@zachysaur
Copy link

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

@ashwani-ver
Copy link

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

Go to file /usr/local/lib/python3.10/dist-packages/basicsr/data/degradations.py and change line number 8 to:

from torchvision.transforms.functional import rgb_to_grayscale
Got the solution from AUTOMATIC1111/stable-diffusion-webui#13985

@ashwani-ver
Copy link

also use python version 3.10.12 for creating environment instead of 3.8. For me it worked.

@zachysaur
Copy link
Author

i fixed it

@only-ns
Copy link

only-ns commented Jun 20, 2024

conda create -n video_retalking python=3.10 -y
conda activate video_retalking
conda install ffmpeg -y
conda install cmake==3.25.2 -y
pip3 uninstall torch torchvision torchaudio -y
conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.7 -c pytorch -c nvidia
pip install -r requirements.txt

@sachin7695
Copy link

i fixed it

can you tell me what exactly you did to fix this?

@zachysaur
Copy link
Author

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

4 participants