discover_images# discover_images(dir: PathLike, extensions: Iterable[str] = ('.jpg', '.jpeg', '.png', '.ppm', '.bmp', '.pgm', '.tif', '.tiff', '.webp', '.npy')) → list[pathlib.Path][source]# Find all images with the given extensions in dir. Parameters: dir (PathLike) – extensions (Iterable[str]) – Return type: list[pathlib.Path]