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
e3d0a9a4
"vscode:/vscode.git/clone" did not exist on "ae0fb243bcc86b7f737e5d8898137c8aaf2ee0b6"
Commit
e3d0a9a4
authored
Aug 24, 2023
by
comfyanonymous
Browse files
Fix potential issue with text projection matrix multiplication.
parent
cc44ade7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
comfy/sd1_clip.py
comfy/sd1_clip.py
+1
-1
No files found.
comfy/sd1_clip.py
View file @
e3d0a9a4
...
@@ -156,7 +156,7 @@ class SD1ClipModel(torch.nn.Module, ClipTokenWeightEncoder):
...
@@ -156,7 +156,7 @@ class SD1ClipModel(torch.nn.Module, ClipTokenWeightEncoder):
pooled_output
=
outputs
.
pooler_output
pooled_output
=
outputs
.
pooler_output
if
self
.
text_projection
is
not
None
:
if
self
.
text_projection
is
not
None
:
pooled_output
=
pooled_output
.
to
(
self
.
text_projection
.
device
)
@
self
.
text_projection
pooled_output
=
pooled_output
.
float
().
to
(
self
.
text_projection
.
device
)
@
self
.
text_projection
.
float
()
return
z
.
float
(),
pooled_output
.
float
()
return
z
.
float
(),
pooled_output
.
float
()
def
encode
(
self
,
tokens
):
def
encode
(
self
,
tokens
):
...
...
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