From 324273fff2c19e36924cb9c44bb6b0c4773f87e9 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Thu, 9 Feb 2023 14:12:02 -0500 Subject: [PATCH] Fix embedding not working when on new line. --- comfy/sd1_clip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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:"