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
324273ff
"git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "035d58bc3aebc9a8d033de2c995263174c7741da"
Commit
324273ff
authored
Feb 09, 2023
by
comfyanonymous
Browse files
Fix embedding not working when on new line.
parent
1f6a467e
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 @
324273ff
...
@@ -217,7 +217,7 @@ class SD1Tokenizer:
...
@@ -217,7 +217,7 @@ class SD1Tokenizer:
tokens
=
[]
tokens
=
[]
for
t
in
parsed_weights
:
for
t
in
parsed_weights
:
to_tokenize
=
unescape_important
(
t
[
0
]).
split
(
' '
)
to_tokenize
=
unescape_important
(
t
[
0
]).
replace
(
"
\n
"
,
" "
).
split
(
' '
)
for
word
in
to_tokenize
:
for
word
in
to_tokenize
:
temp_tokens
=
[]
temp_tokens
=
[]
embedding_identifier
=
"embedding:"
embedding_identifier
=
"embedding:"
...
...
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