Sanster/IOPaint

[BUG]basicsr库报错

Closed this issue · 2 comments

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

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

This issue was closed because it has been inactive for 14 days since being marked as stale.