mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-11-27 06:40:10 +08:00
Fix token max length
This commit is contained in:
parent
b8eae5de93
commit
615b2fc9ce
@ -300,7 +300,7 @@ class FrozenCLIPEmbedderWithCustomWords(torch.nn.Module):
|
||||
remade_batch_tokens = []
|
||||
id_start = self.wrapped.tokenizer.bos_token_id
|
||||
id_end = self.wrapped.tokenizer.eos_token_id
|
||||
maxlen = self.wrapped.max_length - 2
|
||||
maxlen = self.wrapped.max_length
|
||||
used_custom_terms = []
|
||||
|
||||
cache = {}
|
||||
|
Loading…
Reference in New Issue
Block a user