Hi Mostafa,
I have the same issue you had for customizing crop function, is it possible to kindly to send me your code that includes ImageFolder class and also when you call it.  I’m very new to pytorch and I have no idea how to apply customized ImageFolder class.Thank you very much for your help.