Skip to content

[Bugfix?] Shallow copy inputs.#182

Open
Symbiomatrix wants to merge 1 commit intopollockjj:mainfrom
Symbiomatrix:shallow
Open

[Bugfix?] Shallow copy inputs.#182
Symbiomatrix wants to merge 1 commit intopollockjj:mainfrom
Symbiomatrix:shallow

Conversation

@Symbiomatrix
Copy link

@Symbiomatrix Symbiomatrix commented Mar 19, 2026

Hey, @pollockjj .
Currently, the node wrappers deep copy the inputs and edit them, adding more optional parameters.
I believe this is too aggressive. It breaks connectivity with folder_paths lists, which means the multigpu nodes' input folders can no longer be updated on the fly like regular unet / checkpoint etc (I wrote an extension which does that since models are on separate drives, not sure if comfy offers a similar functionality out of box).
Since it seems the only reason to create a copy in the first place is only to add more opt parms, rather than modify the existing ones in any way, a copy of the inputs + optional dicts is sufficient for the desired effect without breaking anything.

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