Clipping input data to the valid range for imshow suppress
Add astype('uint8'):
plt.imshow(results.astype('uint8'))
Clipping input data to the valid range for imshow suppress
Add astype('uint8'):
plt.imshow(results.astype('uint8'))
Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers)
np.array(img,np.int32)
or
If you want to show it, you can use img/255
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us