From 11c9bc719c3deb7b02bcc85232eab3e3d7e2f4a8 Mon Sep 17 00:00:00 2001 From: Won-Kyu Park Date: Fri, 20 Sep 2024 13:07:27 +0900 Subject: [PATCH] make Sd3T5 shared.opts.sd3_enable_t5 independent --- modules/models/sd3/sd3_cond.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/models/sd3/sd3_cond.py b/modules/models/sd3/sd3_cond.py index 7058950a5..fc0232325 100644 --- a/modules/models/sd3/sd3_cond.py +++ b/modules/models/sd3/sd3_cond.py @@ -140,7 +140,7 @@ class Sd3T5(torch.nn.Module): return tokens, multipliers def forward(self, texts, *, token_count): - if not self.t5xxl or not shared.opts.sd3_enable_t5: + if not self.t5xxl: return torch.zeros((len(texts), token_count, 4096), device=devices.device, dtype=devices.dtype) tokens_batch = []