sdeval.utils.images¶
load_images¶
-
sdeval.utils.images.
load_images
(images: Union[PIL.Image.Image, str, List[Union[PIL.Image.Image, str]]]) → List[PIL.Image.Image][source]¶ Load multiple PIL.Image objects from various sources.
This function loads multiple PIL.Image objects from a variety of sources, including PIL.Image objects, file paths, and lists of images. It supports recursive loading of images from directories.
- Parameters:
images (ImagesTyping) – An image or a list of images (PIL.Image, file paths, or a combination).
- Returns:
A list of PIL.Image objects.
- Return type:
List[Image.Image]