From 1a32ae1da24e65ac3ba5144abd3cb17ea90b8b32 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 26 Dec 2025 23:14:13 +0700 Subject: [PATCH] add loader progress bar --- load_image_sequence.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/load_image_sequence.py b/load_image_sequence.py index 135381c..6a47cd6 100644 --- a/load_image_sequence.py +++ b/load_image_sequence.py @@ -62,9 +62,15 @@ class BatchLoadImageSequence: raise RuntimeError("Image sequence empty - no images to load") from concurrent.futures import ThreadPoolExecutor + from comfy.utils import ProgressBar + + pbar = ProgressBar(len(image_paths)) + imgs = [] with ThreadPoolExecutor() as executor: - imgs = list(executor.map(load_image, image_paths)) + for img in executor.map(load_image, image_paths): + imgs.append(img) + pbar.update(1) return (torch.cat(imgs, dim=0),)