rlaphoenix / VSGAN

PyTorch-based Super-Resolution and Restoration Image Processing Module for VapourSynth
https://vsgan.phoeniix.dev
MIT License
190 stars 13 forks source link

Feature request: tiling support #9

Closed Selur closed 2 years ago

Selur commented 2 years ago

Would be nice if VSGAN would some sort of tiling support, to lower the memory requirement. Tiling as in splitting the source image into smaller images apply the model and stick the processed images back together.

rlaphoenix commented 2 years ago

VSGAN already supports this via the chunk parameter of VSGAN.run(), however, I assume you made this because of the artifacts around the edges and are looking for a solution.

I saw your posts on doom9 about this, and saying a possible solution would be to pad the images before running the model and then cropping it off before re-merging the images. This is definitely a possible solution and I will test this in the future.

Selur commented 2 years ago

Yeah, thanks for looking into it, also some control over the size of the 'chunking' would be nice.