Oh, that’s surprising as I thought that the example put up could be directly executed (it uses scikit-learn to import images). However, I got the answer from here - pytorch - RandomAdjustSharpness gives IndexError: tuple index out of range - Stack Overflow 3
Thanks a lot for your help