@ptrblck  the size of original image is (100*100), so I took 40%test. in 40%test I divised image into 3678 patches. But is the same problem

image740×365 12.7 KB

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