How to make ImageFolder ignore .ipynb_checkpoints

Hello, I am having a problem of using ImageFolder in Jupyter Notebook. Jupyter Notebook automatically creates .ipynb_checkpoints file, and ImageFolder recognizes it as one of the classes. I can remove it, but everytime I run the code it’s there again. Anyway for ImageFolder to completely ignore it?

2 Likes