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
0d0fbabd
Commit
0d0fbabd
authored
Feb 20, 2024
by
comfyanonymous
Browse files
Pass pooled CLIP to stage b.
parent
c6b7a157
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
comfy/model_base.py
comfy/model_base.py
+1
-5
No files found.
comfy/model_base.py
View file @
0d0fbabd
...
...
@@ -474,15 +474,11 @@ class StableCascade_B(BaseModel):
clip_text_pooled
=
kwargs
[
"pooled_output"
]
if
clip_text_pooled
is
not
None
:
out
[
'clip
_text_pooled
'
]
=
comfy
.
conds
.
CONDRegular
(
clip_text_pooled
)
out
[
'clip'
]
=
comfy
.
conds
.
CONDRegular
(
clip_text_pooled
)
#size of prior doesn't really matter if zeros because it gets resized but I still want it to get batched
prior
=
kwargs
.
get
(
"stable_cascade_prior"
,
torch
.
zeros
((
1
,
16
,
(
noise
.
shape
[
2
]
*
4
)
//
42
,
(
noise
.
shape
[
3
]
*
4
)
//
42
),
dtype
=
noise
.
dtype
,
layout
=
noise
.
layout
,
device
=
noise
.
device
))
out
[
"effnet"
]
=
comfy
.
conds
.
CONDRegular
(
prior
)
out
[
"sca"
]
=
comfy
.
conds
.
CONDRegular
(
torch
.
zeros
((
1
,)))
cross_attn
=
kwargs
.
get
(
"cross_attn"
,
None
)
if
cross_attn
is
not
None
:
out
[
'clip'
]
=
comfy
.
conds
.
CONDCrossAttn
(
cross_attn
)
return
out
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