feat: Add support for Generative Streams (Data-Channel-Only Workflows)#574
Open
lukiod wants to merge 6 commits intolivepeer:mainfrom
Open
feat: Add support for Generative Streams (Data-Channel-Only Workflows)#574lukiod wants to merge 6 commits intolivepeer:mainfrom
lukiod wants to merge 6 commits intolivepeer:mainfrom
Conversation
… implement tests for batched image handling
eliteprox
reviewed
Dec 24, 2025
Collaborator
There was a problem hiding this comment.
@lukiod These changes are looking great! I made a text-to-images type of workflow using Text Renderer and Batch Images nodes for testing to demo how to build generative workflows in comfystream. One small edit was needed to the SaveTensor node to support batched image outputs from workflows like this.
Please review the suggested additions to SaveTensor node which allowed for testing the workflow (link in pr) lukiod#4
feat(tensor_utils): add batched image support to SaveTensor
mergging main
Author
|
@eliteprox i have fixed the threading issue and standardize the image this is the test i run a checking if a 3-D and 4-D PyTorch tensor is passed how will the what save_tensor.py will return this is the testing code i used |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
This PR enables ComfyStream to support Generative Streams (e.g., Text-to-Video workflows) where the client provides prompt data via the WebRTC Data Channel but sends no input video/audio stream.
Previously, the pipeline would halt or fail to initialize without an incoming media stream to drive the clock. This change allows the pipeline to self-drive frame generation in "Generative Mode."
Changes
PrimitiveStringto the list of recognizedtext_inputnodes. This allows workflows usingPrimitiveStringfor prompts to be correctly validated as accepting text input.Impact
Testing
PrimitiveStringdetection works correctly for modality negotiation.