After saving with plt.imsave loaded image is different from the original. PIL.Image.save works fine. Here is a notebook for reproducing this behavior: https://colab ...