mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2025-12-11 06:54:26 +08:00
Bring patches changes from _calc_cond_batch into _calc_cond_batch_multigpu
This commit is contained in:
parent
b326a544d5
commit
4661d1db5a
@ -481,17 +481,10 @@ def _calc_cond_batch_multigpu(model: BaseModel, conds: list[list[dict]], x_in: t
|
|||||||
copy_dict1=False)
|
copy_dict1=False)
|
||||||
|
|
||||||
if patches is not None:
|
if patches is not None:
|
||||||
# TODO: replace with merge_nested_dicts function
|
transformer_options["patches"] = comfy.patcher_extension.merge_nested_dicts(
|
||||||
if "patches" in transformer_options:
|
transformer_options.get("patches", {}),
|
||||||
cur_patches = transformer_options["patches"].copy()
|
patches
|
||||||
for p in patches:
|
)
|
||||||
if p in cur_patches:
|
|
||||||
cur_patches[p] = cur_patches[p] + patches[p]
|
|
||||||
else:
|
|
||||||
cur_patches[p] = patches[p]
|
|
||||||
transformer_options["patches"] = cur_patches
|
|
||||||
else:
|
|
||||||
transformer_options["patches"] = patches
|
|
||||||
|
|
||||||
transformer_options["cond_or_uncond"] = cond_or_uncond[:]
|
transformer_options["cond_or_uncond"] = cond_or_uncond[:]
|
||||||
transformer_options["uuids"] = uuids[:]
|
transformer_options["uuids"] = uuids[:]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user