mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-31 12:53:27 -08:00
make Sd3T5 shared.opts.sd3_enable_t5 independent
This commit is contained in:
parent
30d0f950b7
commit
11c9bc719c
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue