mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
when doing --log_tokenization/-t also log parsed prompt
This commit is contained in:
parent
ce8c2bea2f
commit
e0581a2c37
@ -47,6 +47,9 @@ def get_uc_and_c_and_ec(prompt_string_uncleaned, model, log_tokens=False, skip_n
|
|||||||
parsed_prompt = pp.parse_conjunction(prompt_string_cleaned).prompts[0]
|
parsed_prompt = pp.parse_conjunction(prompt_string_cleaned).prompts[0]
|
||||||
|
|
||||||
parsed_negative_prompt: FlattenedPrompt = pp.parse_conjunction(unconditioned_words).prompts[0]
|
parsed_negative_prompt: FlattenedPrompt = pp.parse_conjunction(unconditioned_words).prompts[0]
|
||||||
|
if log_tokens:
|
||||||
|
print(f">> Parsed prompt to {parsed_prompt}")
|
||||||
|
print(f">> Parsed negative prompt to {parsed_negative_prompt}")
|
||||||
|
|
||||||
conditioning = None
|
conditioning = None
|
||||||
cac_args:cross_attention_control.Arguments = None
|
cac_args:cross_attention_control.Arguments = None
|
||||||
|
Loading…
Reference in New Issue
Block a user