Assume the dataset creation is wrong. Though I dont see why it says the argument is not valid
If its wrong then, the error should be in




 Archy_dragon:

dataset1 = LFW1('/content/drive/My Drive/recfaces13/recfaces/datasets/LFW/try','lfw', 'jpg', 'sphereface', (96, 112),train=True)


and not here



 Archy_dragon:

for i, data in enumerate(dataloader1):


So I would it has something to do with the dataloader too. That is also the reason for me asking why does the dataset class not inherit torch Dataset class? Could you please change and she if the error still exists?



 Archy_dragon:

class LFW1(object):#orginal