Hey guys, so I tried to get image files like so
filenames = get_image_files((path/‘images’),check_ext=True,image_extensions=[’.png’])
TypeError Traceback (most recent call last) <ipython-input-27-6277c100d0e9> in <module>() ----> 1 filenames = get_image_files((path/'images'),check_ext=True,image_extensions=['.png']) TypeError: get_image_files() got an unexpected keyword argument 'image_extensions'
But the source code reads like this -
def get_image_files(c:PathOrStr, check_ext:bool=True, recurse=False)->FilePathList: "Return list of files in `c` that are images. `check_ext` will filter to `image_extensions`." return get_files(c, extensions=(image_extensions if check_ext else None), recurse=recurse)
There seems to be no way to add image_extensions, even though the function has a way to handle it.