ncsnv2 icon indicating copy to clipboard operation
ncsnv2 copied to clipboard

rectangular data

Open tpresser570 opened this issue 7 months ago • 0 comments

Hi there thanks for providing your repo! I have been trying to adapt the Ncsnv2 model to work with rectangular data, say 5x1024 instead of normal images. I have found that the only noncompatible section is the ConvMeanPool layer uses the summation:

output = sum([output[:, :, ::2, ::2], output[:, :, 1::2, ::2],
                      output[:, :, ::2, 1::2], output[:, :, 1::2, 1::2]]) / 4.

Which is the only section that requires square data with 2 even dimensions. Are there any recommendations for some way around this?

tpresser570 avatar Nov 15 '23 08:11 tpresser570