Merge branch 'feat_longer_prompts' of github.com:damian0815/InvokeAI into feat_longer_prompts

This commit is contained in:
Damian Stewart 2023-03-08 23:24:41 +01:00
commit 543682fd3b

View File

@ -97,7 +97,7 @@ def get_uc_and_c_and_ec(
c, options = compel.build_conditioning_tensor_for_prompt_object(positive_prompt)
uc, _ = compel.build_conditioning_tensor_for_prompt_object(negative_prompt)
c, uc = compel.pad_conditioning_tensors_to_same_length(c, uc)
[c, uc] = compel.pad_conditioning_tensors_to_same_length([c, uc])
tokens_count = get_max_token_count(tokenizer, positive_prompt)