Open whybfq opened 6 months ago
Spandrel currently doesn't tile the input image for you, so you have to implement tiling yourself. However, we plan on adding image tiling later.
just add tiling support class like above as a reference, above code already passed the test on Ubuntu22.04
Thanks, but we will most likely be taking our tiling code from chaiNNer (which we are also the main developers on) and extracting it out into its own package (that spandrel will then use). chaiNNer's code has a lot of nice things in it that have been built up over years, so we'd like to retain all that functionality. This doesn't look like a bad implementation, it's just missing some things.
Sorry for not being clear about that before. It wasn't that we don't have tiling code to use, it's just that we haven't worked on making a package with it yet as we have been focused on other things. But again, thanks for being willing to share this with us :)
Would be nice to have this
may I ask how to use the tiling function after load the model, such as ESRGAN, or do I need to realize by myself, such as for big picture, I need to tile it with 512 *512, tile_pad is 10, and pre_pad is 10