Logging for debugging
This commit is contained in:
parent
b331ca784a
commit
81e0723d65
@ -518,12 +518,14 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
|
|||||||
|
|
||||||
if type(p) == StableDiffusionProcessingTxt2Img:
|
if type(p) == StableDiffusionProcessingTxt2Img:
|
||||||
if p.enable_hr and p.is_hr_pass:
|
if p.enable_hr and p.is_hr_pass:
|
||||||
|
logging.info("Running hr pass with custom prompt")
|
||||||
if p.hr_prompt:
|
if p.hr_prompt:
|
||||||
if type(p.prompt) == list:
|
if type(p.prompt) == list:
|
||||||
p.all_prompts = [shared.prompt_styles.apply_styles_to_prompt(x, p.styles) for x in p.hr_prompt]
|
p.all_prompts = [shared.prompt_styles.apply_styles_to_prompt(x, p.styles) for x in p.hr_prompt]
|
||||||
else:
|
else:
|
||||||
p.all_prompts = p.batch_size * p.n_iter * [
|
p.all_prompts = p.batch_size * p.n_iter * [
|
||||||
shared.prompt_styles.apply_styles_to_prompt(p.hr_prompt, p.styles)]
|
shared.prompt_styles.apply_styles_to_prompt(p.hr_prompt, p.styles)]
|
||||||
|
logging.info(p.all_prompts)
|
||||||
|
|
||||||
if p.hr_negative_prompt:
|
if p.hr_negative_prompt:
|
||||||
if type(p.negative_prompt) == list:
|
if type(p.negative_prompt) == list:
|
||||||
@ -532,6 +534,7 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
|
|||||||
else:
|
else:
|
||||||
p.all_negative_prompts = p.batch_size * p.n_iter * [
|
p.all_negative_prompts = p.batch_size * p.n_iter * [
|
||||||
shared.prompt_styles.apply_negative_styles_to_prompt(p.hr_negative_prompt, p.styles)]
|
shared.prompt_styles.apply_negative_styles_to_prompt(p.hr_negative_prompt, p.styles)]
|
||||||
|
logging.info(p.all_negative_prompts)
|
||||||
|
|
||||||
if type(seed) == list:
|
if type(seed) == list:
|
||||||
p.all_seeds = seed
|
p.all_seeds = seed
|
||||||
|
Loading…
Reference in New Issue
Block a user