diff --git a/modules/processing_args.py b/modules/processing_args.py index 0e84f2a4a..cc8d39c11 100644 --- a/modules/processing_args.py +++ b/modules/processing_args.py @@ -181,6 +181,8 @@ def set_pipeline_args(p, model, prompts: list, negative_prompts: list, prompts_2 if hasattr(model, 'scheduler') and hasattr(model.scheduler, 'noise_sampler_seed') and hasattr(model.scheduler, 'noise_sampler'): model.scheduler.noise_sampler = None # noise needs to be reset instead of using cached values model.scheduler.noise_sampler_seed = p.seeds # some schedulers have internal noise generator and do not use pipeline generator + if 'seed' in possible: + args['seed'] = p.seed if 'noise_sampler_seed' in possible: args['noise_sampler_seed'] = p.seeds if 'guidance_scale' in possible: diff --git a/scripts/pulid_ext.py b/scripts/pulid_ext.py index 7ec32e904..d0d738b6a 100644 --- a/scripts/pulid_ext.py +++ b/scripts/pulid_ext.py @@ -174,10 +174,10 @@ def run(self, p: processing.StableDiffusionProcessing, strength: float = 0.8, ze shared.sd_model.debug_img_list = [] uncond_id_embedding, id_embedding = shared.sd_model.get_id_embedding(images) + p.seed = processing_helpers.get_fixed_seed(p.seed) if direct: # run pipeline directly shared.state.begin('PuLID') processing.fix_seed(p) - p.seed = processing_helpers.get_fixed_seed(p.seed) p.prompt = shared.prompt_styles.apply_styles_to_prompt(p.prompt, p.styles) p.negative_prompt = shared.prompt_styles.apply_negative_styles_to_prompt(p.negative_prompt, p.styles) with devices.inference_context():