In your code, noisy image and the corresponding clean image are intermingled in the filenames list as a separate entry. Meanwhile, get_patches() generates random patches for each entry in the filenames. Accordingly, locations of the patches for noisy image and locations of the patches for the corresponding clean image are not consistent. Am I right?
In your code, noisy image and the corresponding clean image are intermingled in the filenames list as a separate entry. Meanwhile, get_patches() generates random patches for each entry in the filenames. Accordingly, locations of the patches for noisy image and locations of the patches for the corresponding clean image are not consistent. Am I right?