mafiosnik777/enhancr

Upscaled video appears glitched when video width or height is not a multiple of 4 pixels

Closed this issue · 2 comments

When upscaling a video with a width or height that is a multiple of 4 pixels (ex. 360), the video appears fine.
If the width or height is not a multiple of 4 pixels (ex. 362), the video appears glitched, with the frames being two-tone colors, or something like that.

Version used is 0.9.8 (Free).
Engine used is ShuffleCUGAN (NCNN).

We add padding inside the model with ShuffleCUGAN, might be NCNN issue. I'm fairly sure TensorRT doesn't do that.
I'll add padding & crop it away again outside of the model for NCNN. Noting it down for next update, thanks for reporting. @RocketRobz

Fixed in 0e38d7c.

I indeed removed padding accidentaly when I exported the model to NCNN.
Upon re-exporting with padding I noticed that you can't pad inside models with NCNN when you upscale, because it lays together the color channels wrong and you get RGB split, so I had to pad manually outside the model.