Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

fix: count non-dict items in outputs_count (#12166)

Christian Byrne3aace5c8dc81
diff --git a/comfy_execution/jobs.py b/comfy_execution/jobs.py
index 97fd803b8..bf091a448 100644
--- a/comfy_execution/jobs.py
+++ b/comfy_execution/jobs.py
@@ -171,9 +171,10 @@ def get_outputs_summary(outputs: dict) -> tuple[int, Optional[dict]]:
continue
for item in items:
+ count += 1
+
if not isinstance(item, dict):
continue
- count += 1
if preview_output is None and is_previewable(media_type, item):
enriched = {