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
ade7aa1b
Commit
ade7aa1b
authored
Jul 09, 2024
by
comfyanonymous
Browse files
Remove useless import.
parent
faa57430
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
comfy/cldm/cldm.py
comfy/cldm/cldm.py
+1
-2
No files found.
comfy/cldm/cldm.py
View file @
ade7aa1b
...
@@ -13,7 +13,6 @@ from ..ldm.modules.diffusionmodules.util import (
...
@@ -13,7 +13,6 @@ from ..ldm.modules.diffusionmodules.util import (
from
..ldm.modules.attention
import
SpatialTransformer
from
..ldm.modules.attention
import
SpatialTransformer
from
..ldm.modules.diffusionmodules.openaimodel
import
UNetModel
,
TimestepEmbedSequential
,
ResBlock
,
Downsample
from
..ldm.modules.diffusionmodules.openaimodel
import
UNetModel
,
TimestepEmbedSequential
,
ResBlock
,
Downsample
from
..ldm.util
import
exists
from
..ldm.util
import
exists
from
..ldm.cascade.common
import
OptimizedAttention
from
collections
import
OrderedDict
from
collections
import
OrderedDict
import
comfy.ops
import
comfy.ops
from
comfy.ldm.modules.attention
import
optimized_attention
from
comfy.ldm.modules.attention
import
optimized_attention
...
@@ -388,7 +387,7 @@ class ControlNet(nn.Module):
...
@@ -388,7 +387,7 @@ class ControlNet(nn.Module):
emb
=
self
.
time_embed
(
t_emb
)
emb
=
self
.
time_embed
(
t_emb
)
guided_hint
=
None
guided_hint
=
None
if
self
.
control_add_embedding
is
not
None
:
if
self
.
control_add_embedding
is
not
None
:
#Union Controlnet
control_type
=
kwargs
.
get
(
"control_type"
,
[])
control_type
=
kwargs
.
get
(
"control_type"
,
[])
emb
+=
self
.
control_add_embedding
(
control_type
,
emb
.
dtype
,
emb
.
device
)
emb
+=
self
.
control_add_embedding
(
control_type
,
emb
.
dtype
,
emb
.
device
)
...
...
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