Skip to content

feat: add batch/list conversion nodes for IMAGE and LATENT#55

Merged
vitosans merged 2 commits intomainfrom
feature/batch-list-converter
Feb 10, 2026
Merged

feat: add batch/list conversion nodes for IMAGE and LATENT#55
vitosans merged 2 commits intomainfrom
feature/batch-list-converter

Conversation

@vitosans
Copy link
Contributor

Summary

  • Add 4 utility nodes (ImageBatchToImageList, ImageListToImageBatch, LatentBatchToLatentList, LatentListToLatentBatch) for converting between batched tensors and lists
  • Eliminates dependency on ComfyUI-Impact-Pack for this common operation
  • Includes 23 unit tests covering logic functions and node attributes

Test plan

  • All 23 new unit tests pass (pytest tests/unit/tools/test_batch_list_converter.py -v)
  • Full test suite passes (no regressions)
  • Black formatting verified
  • Manual test in ComfyUI: connect ImageBatchToImageList output to a node expecting individual images
  • Manual test in ComfyUI: connect LatentBatchToLatentList output to a per-latent processing node
  • Verify roundtrip: batch → list → batch produces identical results in workflow

… and LATENT

Add 4 utility nodes for converting between batched tensors and lists,
eliminating the dependency on Impact Pack for this common operation:
- ImageBatchToImageList (OUTPUT_IS_LIST)
- ImageListToImageBatch (INPUT_IS_LIST)
- LatentBatchToLatentList (OUTPUT_IS_LIST)
- LatentListToLatentBatch (INPUT_IS_LIST)
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3bf8391e88

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…/join

Previously split_latent_batch and join_latent_batch only handled the
"samples" key, silently dropping metadata like noise_mask or batch_index.
This broke inpaint and masked workflows after a round-trip conversion.
@vitosans vitosans merged commit c7f24a3 into main Feb 10, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant