mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-02-08 06:32:54 +08:00
make Sd3T5 shared.opts.sd3_enable_t5 independent
This commit is contained in:
parent
30d0f950b7
commit
11c9bc719c
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user