BasicSR
BasicSR copied to clipboard
[BREAKING FIX] [torchvision 0.17] Change functional_tensor import
Fix for #649
torchvision
0.17 was just released: https://github.com/pytorch/vision/releases/tag/v0.17.0
can we merge it? 2 months since 0.17 released.
Over at Invoke, we only use the RealESRGAN functionality provided by basicsr
.
I extracted the relevant classes and cleaned them up a bit:
Maybe this is useful for others who only use this library for upscaling and would like to keep their other dependencies up to date.
Over at Invoke, we only use the RealESRGAN functionality provided by
basicsr
.
The Spandrel project by the chaiNNer folks (disclaimer: I'm a contributor, and I also wired Spandrel up into a1111 in https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14425) implements RealESRGAN and various other upscaling and enhancement models in a clean way.
Thanks for the link @akx ! This looks like a very ergonomic API, great work. Much nicer than what the basicsr repo provides (and my extracted version of it).
could we release a new version with this fix?