I’m having this same issue. My folder structure is simply images_dir -> many images with a .jpeg extension. Whenever I try to load this dir in a notebook with datasets.ImageFolder, the notebook creates a .ipynbcheckpoints folder and starts placing loaded images in there.
Edit: I think I see the issue. The ImageFolder loader is expecting images to be separated into subdirectories. I have no need of a subdirectory, but I guess I need to make one anyway to avoid this.