SadTalker icon indicating copy to clipboard operation
SadTalker copied to clipboard

basicsr 1.4.2 版本会带来错误

Open xmany opened this issue 1 year ago • 0 comments

如果直接

pip install -r requirements.txt

会使用 basicsr 1.4.2 版本。 而这个版本会带来错误:

File ".../miniconda3/envs/sadtalker/lib/python3.8/site-packages/basicsr/data/degradations.py", line 8, in <module>

from torchvision.transforms.functional_tensor import rgb_to_grayscale
ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor'

解决方法:手动安装git上的最新版本

pip install git+https://github.com/XPixelGroup/BasicSR

xmany avatar Jan 01 '25 05:01 xmany