I want to reconstruct the original image
patch_size = (5,5)

new_image = image.reconstruct_from_patches_2d(val_x, ((5, 5, 1)))
plt.subplot(1, 2, 1)
plt.title('Image')
plt.imshow(new_image,cmap='gray' )

error:

image732×344 12.6 KB

help me plz