I looked at your Github, I quickly tried to check it on the example that you gave. Pytorch gave me an error about padding =same, it expects an integer or tuple not str. It shouldn’t be like that but I have this error.
By the way, dose your model also support the dimensions that are not equal?
I mean : hight is different from width.