"git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "035d58bc3aebc9a8d033de2c995263174c7741da"
Commit 324273ff authored by comfyanonymous's avatar comfyanonymous
Browse files

Fix embedding not working when on new line.

parent 1f6a467e
...@@ -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:"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment