Logging for debugging

This commit is contained in:
invincibledude 2023-01-22 14:41:41 +03:00
parent b331ca784a
commit 81e0723d65

View File

@ -518,12 +518,14 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
if type(p) == StableDiffusionProcessingTxt2Img:
if p.enable_hr and p.is_hr_pass:
logging.info("Running hr pass with custom prompt")
if p.hr_prompt:
if type(p.prompt) == list:
p.all_prompts = [shared.prompt_styles.apply_styles_to_prompt(x, p.styles) for x in p.hr_prompt]
else:
p.all_prompts = p.batch_size * p.n_iter * [
shared.prompt_styles.apply_styles_to_prompt(p.hr_prompt, p.styles)]
logging.info(p.all_prompts)
if p.hr_negative_prompt:
if type(p.negative_prompt) == list:
@ -532,6 +534,7 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
else:
p.all_negative_prompts = p.batch_size * p.n_iter * [
shared.prompt_styles.apply_negative_styles_to_prompt(p.hr_negative_prompt, p.styles)]
logging.info(p.all_negative_prompts)
if type(seed) == list:
p.all_seeds = seed