plt.imshow typeerror nieprawidłowe wymiary danych obrazu

if image.shape[2] == 1:
    image = image[:, :, 0]
return image
Merwanski