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

basicsr 1.4.2 版本会带来错误 #965

Open
xmany opened this issue Jan 1, 2025 · 0 comments
Open

basicsr 1.4.2 版本会带来错误 #965

xmany opened this issue Jan 1, 2025 · 0 comments

Comments

@xmany
Copy link

xmany commented Jan 1, 2025

如果直接

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

1 participant