OpenTalker / video-retalking

[SIGGRAPH Asia 2022] VideoReTalking: Audio-based Lip Synchronization for Talking Head Video Editing In the Wild
https://opentalker.github.io/video-retalking/
Apache License 2.0
6.02k stars 895 forks source link

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

Open zachysaur opened 3 weeks ago

zachysaur commented 3 weeks ago

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

ashwani-ver commented 3 weeks ago

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 https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/13985

ashwani-ver commented 3 weeks ago

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

zachysaur commented 3 weeks ago

i fixed it

only-ns commented 1 week ago
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 commented 3 days ago

i fixed it

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

zachysaur commented 3 days ago

https://www.youtube.com/watch?v=y0yL6EGwiN8&t=37s