forked from yondonfu/comfystream
-
Notifications
You must be signed in to change notification settings - Fork 6
Fix:streamdiffusion custom node build, dependencies conflict issue #579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
eliteprox
merged 6 commits into
feat/custom-nodes-config
from
prakarsh1.1/feat/custom-nodes-config
Dec 28, 2025
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
96e268a
fix:incorporate #575 PR to solve requirements conflict
RUFFY-369 8768deb
feat:Add build_targets.yaml and dynamic StreamDiffusion engine build …
RUFFY-369 b0d6513
fix:compatibility based on https://github.com/yondonfu/comfystream/co…
RUFFY-369 486a04c
fix:streamdiffusion trt build bugs
RUFFY-369 598afc6
fix:normal docker build error
RUFFY-369 7e403c9
revert:back torch and xformers to original version
RUFFY-369 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # build_targets.yaml | ||
| # Maps node names to their build scripts and config files. | ||
| # Add new nodes as needed. | ||
|
|
||
| streamdiffusion: | ||
| script: /workspace/ComfyUI/custom_nodes/ComfyUI-StreamDiffusion/scripts/build_tensorrt_engines.py | ||
| configs: | ||
| - /workspace/ComfyUI/custom_nodes/ComfyUI-StreamDiffusion/configs/sd15_singlecontrol.yaml | ||
| - /workspace/ComfyUI/custom_nodes/ComfyUI-StreamDiffusion/configs/sdturbo_multicontrol.yaml | ||
| folder: /workspace/ComfyUI/custom_nodes/ComfyUI-StreamDiffusion/scripts | ||
|
|
||
| # Example for another node: | ||
| # depthanything: | ||
| # script: /workspace/ComfyUI/custom_nodes/ComfyUI-DepthAnything/scripts/build_depthanything_engine.py | ||
| # configs: | ||
| # - /workspace/ComfyUI/custom_nodes/ComfyUI-DepthAnything/configs/depthanything.yaml | ||
| # folder: /workspace/ComfyUI/custom_nodes/ComfyUI-DepthAnything/scripts | ||
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is neat, does it support arguments for other scripts like build_trt.py?
We will need to cover the case when an image is built using nodes.yaml, and entrypoint.sh is ran with
--build-engines, Just need a basic check to not attempt build if the custom nodes folder or script doesn't exist.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can finalize that in #488 though, will go ahead and merge this one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can cherry-pick this one to guard the other engine builds or refactor to your script
979fcef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The [entrypoint.sh]already checks for the existence of build_targets.yaml, the required folder, and the script before attempting StreamDiffusion engine builds (see lines 142–144 and the Python block around line 150+). It skips the build if any are missing, just like the new logic for other nodes which you referred for cherry picking.