MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / search_for_images

Function search_for_images

diffsynth/data/video.py:40–45  ·  view source on GitHub ↗
(folder)

Source from the content-addressed store, hash-verified

38
39
40def search_for_images(folder):
41 file_list = [i for i in os.listdir(folder) if i.endswith(".jpg") or i.endswith(".png")]
42 file_list = [(split_file_name(file_name), file_name) for file_name in file_list]
43 file_list = [i[1] for i in sorted(file_list)]
44 file_list = [os.path.join(folder, i) for i in file_list]
45 return file_list
46
47
48class LowMemoryImageFolder:

Callers 1

__init__Method · 0.70

Calls 1

split_file_nameFunction · 0.70

Tested by

no test coverage detected