Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix embedding not working when on new line.

comfyanonymous324273fff2c1
diff --git a/comfy/sd1_clip.py b/comfy/sd1_clip.py
index 4eccdc64d..2b94d2819 100644
--- a/comfy/sd1_clip.py
+++ b/comfy/sd1_clip.py
@@ -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:"