MCPcopy Create free account
hub / github.com/Francis-Rings/StableAnimator / load_images_from_folder

Function load_images_from_folder

train.py:157–167  ·  view source on GitHub ↗
(folder)

Source from the content-addressed store, hash-verified

155# return images
156
157def load_images_from_folder(folder):
158 images = []
159
160 files = os.listdir(folder)
161 png_files = [f for f in files if f.endswith('.png')]
162 png_files.sort(key=lambda x: int(x.split('_')[1].split('.')[0]))
163 for filename in png_files:
164 img = Image.open(os.path.join(folder, filename)).convert('RGB')
165 images.append(img)
166
167 return images
168
169
170

Callers 1

log_validationFunction · 0.70

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected