Closed infinitemonkeytheory closed 1 year ago
I assume this was with SwinIR, Swin2SR, or hat?
I assume this was with SwinIR, Swin2SR, or hat?
I should've included more data. I started out seeing about merging various GFPGAN models (out of curiosity), which is where I hit above error. And as predicted with, e.g., SwinIR or HAT I get essentially what I assume (perhaps totally incorrectly) is a similar error to above:
Argument #4: Padding size should be less than the corresponding input dimension, but got: padding (0, 5) at dimension 3 of input 4
and
Argument #4: Padding size should be less than the corresponding input dimension, but got: padding (0, 13) at dimension 3 of input 4
Real-ESRGAN Compact works as expected (e.g. tested merging realesr-general-x4v3.pth with realesr-general-wdn-x4v3.pth and encountered no issues plus was able to successfully use merged model).
I'm afraid that's all I've tested so far.
Yeah then i know why this happens. Since interpolation between models that don't share a pretrained model produces broken models i do a small 3x3 upscale test to make sure it doesn't spit out a garbage result. However gfpgan requires a 512x512 image no matter what, and a similar thing is needed for those other models where they have size restrictions. I just need to update the interpolation check to either not happen for those models or simply use the correct sizes.
Information:
ChaiNNer: chaiNNer 0.15.2 OS: macOS 10.18
Description When attempting to interpolate models the above error is thrown.
Logs