Malikanhar / Face-Sketch-to-Image-Generation-using-GAN

Face Sketch to Image Generation using Generative Adversarial Networks
28 stars 13 forks source link

After running the data augmentation notebook, i find that the sketch-photo pairs are mismatched. For the same 1102 label, the sketch and photo are of different people. #27

Closed ramgj28 closed 2 years ago

ramgj28 commented 2 years ago

issue still exists

ramgj28 commented 2 years ago

So i found that in the code snippet p_filenames = glob.glob('Dataset/CUHK/Training photo/*')
s_filenames = glob.glob('Dataset/CUHK/Training sketch/*')

the order of the files need not be sorted. adding the sorted() function solved the issue for me. p_filenames = sorted(glob.glob('Dataset/CUHK/Training photo/*')) s_filenames = sorted(glob.glob('Dataset/CUHK/Training sketch/*'))

Hope this helps someone. Cheers