First time here? Check out the FAQ!
answered 2022-08-10 01:34:09 +0100
I figure out how to fix it, but I still don't understand why it happens in the first place:
Here is a fix: imshow(img/255.0, cmap='gray') which shows it in grayscale.