add loader progress bar

This commit is contained in:
Your Name
2025-12-26 23:14:13 +07:00
parent 1cf001cc10
commit 1a32ae1da2
+7 -1
View File
@@ -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),)