BasicSR
BasicSR copied to clipboard
Enhance img_process_util.py: Add return types and improve USM sharpen…
…ing function, optimized to work on new versions of torchvision 0.20
Hello, I was having problems trying to run the project in recent versions of torchvision. I made some modifications to your project and the "Real-ESRGAN" project and managed to run it in new versions without any problems. I am opening this PR in both projects for updating.