From 0f8390791172ae918b5c42dc3c33831bd5ebaa28 Mon Sep 17 00:00:00 2001 From: City <125218114+city96@users.noreply.github.com> Date: Fri, 31 May 2024 21:56:37 +0200 Subject: [PATCH] HunYuanDiT fix double text encoder input #58 --- HunYuanDiT/nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HunYuanDiT/nodes.py b/HunYuanDiT/nodes.py index a9e1b6a..dbce038 100644 --- a/HunYuanDiT/nodes.py +++ b/HunYuanDiT/nodes.py @@ -100,7 +100,7 @@ class HYDiTTextEncode: # T5 T5.load_model() t5_pre = T5.tokenizer( - text, + text_t5, max_length = T5.cond_stage_model.max_length, padding = 'max_length', truncation = True,