Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
739b7663
Commit
739b7663
authored
Jul 04, 2024
by
comfyanonymous
Browse files
Remove useless code.
parent
24b969d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
comfy/cldm/mmdit.py
comfy/cldm/mmdit.py
+0
-9
No files found.
comfy/cldm/mmdit.py
View file @
739b7663
...
@@ -56,15 +56,6 @@ class ControlNet(comfy.ldm.modules.diffusionmodules.mmdit.MMDiT):
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment