mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-20 03:13:30 +00:00
Remove useless code.
This commit is contained in:
parent
24b969d3da
commit
739b76630e
@ -56,15 +56,6 @@ class ControlNet(comfy.ldm.modules.diffusionmodules.mmdit.MMDiT):
|
|||||||
if context is not None:
|
if context is not None:
|
||||||
context = self.context_embedder(context)
|
context = self.context_embedder(context)
|
||||||
|
|
||||||
if self.register_length > 0:
|
|
||||||
context = torch.cat(
|
|
||||||
(
|
|
||||||
repeat(self.register, "1 ... -> b ...", b=x.shape[0]),
|
|
||||||
default(context, torch.Tensor([]).type_as(x)),
|
|
||||||
),
|
|
||||||
1,
|
|
||||||
)
|
|
||||||
|
|
||||||
output = []
|
output = []
|
||||||
|
|
||||||
blocks = len(self.joint_blocks)
|
blocks = len(self.joint_blocks)
|
||||||
|
Loading…
Reference in New Issue
Block a user