KernelGAN icon indicating copy to clipboard operation
KernelGAN copied to clipboard

It seems like a bug?

Open Luciennnnnnn opened this issue 4 years ago • 0 comments

https://github.com/sefibk/KernelGAN/blob/7218a37f0933519513aac97f40b8a72d3676eec9/imresize.py#L164

If we want to get the size of last dimension(the number of channels), we should use im.shape[-1], np.ndim(im) is the number of dimension of im, in RGB case just equal to im.shape[-1], but for gray image that is wrong.

Luciennnnnnn avatar Apr 13 '21 06:04 Luciennnnnnn