You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
KernelGAN/imresize.py
Line 164 in 7218a37
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 ofim
, in RGB case just equal to im.shape[-1], but for gray image that is wrong.The text was updated successfully, but these errors were encountered: