Hi! @tjwang888,
Welcome to the PyTorch Community 
Coming to your question, please make sure that the

image types are of supported formats
there are images in the directory
And that you are passing the path correctly.

If you have checked these 3 and still facing an error.
Show us your StackTrace and output of the ls command for that same path.
Please wrap your code in ```
Thanks