1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-03 07:26:31 +08:00

Fix embedding not working when on new line.

This commit is contained in:
comfyanonymous
2023-02-09 14:12:02 -05:00
parent 1f6a467e92
commit 324273fff2

View File

@@ -217,7 +217,7 @@ class SD1Tokenizer:
tokens = []
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:
temp_tokens = []
embedding_identifier = "embedding:"