Replies: 2 comments 11 replies
-
Padding for neural network model inputsIn super-resolution model, it is better to avoid padding as much as possible. There are no pixels outside of the entire image, so padding is the only solution for image borders(boundary). AlphaBorderPadding/EdgeBleedMy implementation of AlphaBorderPadding is a linear-time algorithm. (Tiling for the neural network part is intended to avoid GPU(VRAM) out of memory. I am not concerned about that in AlphaBorderPadding.) |
Beta Was this translation helpful? Give feedback.
-
The most different part of the browser (CPU) and server (GPU) versions is that in the browser version, tiling helps to display visual progress. |
Beta Was this translation helpful? Give feedback.
-
unlimited:waifu2x currently converts the entire image to one tensor, and pads it all at once. But my implementation of unlimited:waifu2x pads and edge bleeds for each tile individually:
https://github.com/LoganDark/waifu2x-unlimited/blob/bbdd2baa67a2ac3fec69fb76eb3c7b64097975eb/src/jobs/jobs.ts#L328-L422
https://github.com/LoganDark/waifu2x-unlimited/blob/bbdd2baa67a2ac3fec69fb76eb3c7b64097975eb/src/jobs/jobs.ts#L171-L191
Is there a reason why this isn't done in the official version?
Beta Was this translation helpful? Give feedback.
All reactions