Commit 81e0723d authored by invincibledude's avatar invincibledude
Browse files

Logging for debugging

parent b331ca78
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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