DavidMrd
DavidMrd
Hi, thank you for your answer. I am using the pre-trained Resnet classifier. I am trying to predict the gender using the CelebA dataset. I tried to fine-tune/retrain it on...
Hi, I tested the new notebook and got again a validation and test acc of ~57%. Did you preprocess the images or the labels?
Ok, thank you a lot!
hi, sorry for the late reply. I was trying to use your code, but somehow the labels and the images are not loaded in the same order. That is why...
You can fix it by sorting the image_paths list in the__init__ methods of the Dataset classes image_path = os.path.join(celeb_dir, "img_align_celeba", "img_align_celeba") list_sorted = os.listdir(image_path) list_sorted.sort() self.images = [os.path.join(image_path, file) for...