Hi mchowdhu,
Looks like the error is due to a type mismatch in the os.path.join() function call.



 mchowdhu:

img_name = os.path.join(self.root_dir, self.data[‘ID’][idx])


The correct way is shown here:
img_name = os.path.join(self.root_dir, str(self.data['ID'][idx]))

Hope this solves the current error.