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

[BUG]basicsr库报错 #559

Open
Noah0115 opened this issue Aug 15, 2024 · 1 comment
Open

[BUG]basicsr库报错 #559

Noah0115 opened this issue Aug 15, 2024 · 1 comment
Labels

Comments

@Noah0115
Copy link

torch2.3.0+cu121
torchvision0.18.0+cu121
这两个版本不支持basicsr,导入包时出问题,只需修改虚拟环境下 D:\IOPaint.venv\Lib\site-packages\basicsr\data 中的 degradations.py
修改import方式
原来:from torchvision.transforms.functional_tensor import rgb_to_grayscale
修改后:from torchvision.transforms._functional_tensor import rgb_to_grayscale

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant